This is a migrated thread and some comments may be shown as answers.

ISO 8601 format and milliseconds

2 Answers 531 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 28 Apr 2014, 06:03 PM
I have a kendo grid plugged on a OData service providing date into the Microsoft date format and everything is working like a charm.

However, the OData service will be upgraded to be ISO 8601 compliant.  Kendo grid seems to handle it very well.... except for one thing: Milliseconds.

Indeed, even if I set the column format to {0:yyyy-MM-dd HH:mm:ss.fff}, the displayed milliseconds are always set to 0.

Ex:

-With Microsoft date format, the OData value /Date(1376439064929-0400)/ will be displayed as 2013-08-13 13:31:04.929
-With ISO 8601 date format, the OData value  2013-08-13T20:11:04.9297826 will be displayed as 2013-08-13 20:11:04.0

Is it a bug or is this the expected behavior from the Kendo Grid?

Best regards,

Simon

P.S. I know the ISO date format isn't officially supported by OData but Kendo already did most of the job for handle the ISO date format...

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 30 Apr 2014, 11:22 AM
Hello Simon,

Thank you for drawing our attention to this issue. It seams that the kendo.parseDate, which Grid uses internally, does not parse correctly UTC dates without a timezone offset. We will address this limitation in next internal build of Kendo UI. You can check the status of the issue here.
I updated your Telerik points because of the involvement.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Simon
Top achievements
Rank 1
answered on 30 Apr 2014, 11:34 AM
Wow! Already fixed!

Thank you Georgi!
Tags
Grid
Asked by
Simon
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Simon
Top achievements
Rank 1
Share this question
or