Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
400
15.2 DateEditor starts with wrong time value
posted

Hello,

we upgraded to 15.2.20152.1027 and got into an issue with the date editor. 

The column datatype is "datetime" and we use it as a time editor with a spinner. (editorType "date", buttonTyp "spin" enableUTCDates true)

We found a bug in infragistics.lob.js: we use UTCDate and the date value is not passed correctly to the dateeditor, and the spinners are not working correctly. 

We posted another issue yesterday, the dateeditor and datepicker seem to be buggy in this release.

the grids are localized and regionalized (de-de, en-gb, etc...)

Our Temp fix:

_getDateObjectFromValue: function (value) { //DateEditor
if ($.type(value) === "date") {
if (this.options.enableUTCDates) {
value = new Date(Date.UTC(value.getFullYear(), value.getMonth(), value.getDate(), value.getUTCHours(), value.getMinutes()));
}
return value;
} else if (this._mvcDateRegex.test(value)) {
return new Date(parseInt(value.replace(this._mvcDateRegex, "$1"), 10));
} else if (typeof value === "string") {
return this._parseDateFromMaskedValue(value);
} else {
return new Date(value);
}
},

Please have a look at this issues.

Parents
No Data
Reply
  • 23953
    Verified Answer
    Offline posted

    Hello,

    This issue should be fixed in the latest 15.2 Service Release build 2081. Please, test it with this build and let me know if you can still reproduce it.

    Best regards,
    Martin Pavlov
    Infragistics, Inc.

Children
No Data