Skip to content

Commit

Permalink
When date picker displayTimeOffset is defined and calendar interactio…
Browse files Browse the repository at this point in the history
…n happens, then date needs offset.

IgniteUI#1109
  • Loading branch information
Lipata committed Sep 4, 2017
1 parent 9254092 commit 26b4c29
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/js/modules/infragistics.ui.editors.js
Expand Up @@ -9461,7 +9461,12 @@

// extractedDate = this._dateObjectValue;
// N.A. 11/10/2015 Bug #207560: Set new date using timestamp.
extractedDate = new Date(this._dateObjectValue.getTime());
// N.A. September 4th, 2017 #1109: When date picker displayTimeOffset is defined and calendar interaction happens, then date needs offset.
if (this.options.displayTimeOffset !== null) {
extractedDate = this._getDateOffset(this._dateObjectValue);
} else {
extractedDate = new Date(this._dateObjectValue.getTime());
}
}
if (yearField !== null && yearField !== undefined) {
this._setDateField("FullYear", extractedDate, yearField);
Expand Down

0 comments on commit 26b4c29

Please sign in to comment.