or
$("#grid").kendoGrid({ dataSource:{ data:[ { utcdate: kendo.parseDate("2012-04-18 11:23:45Z", "u"), localdate: new Date() } ], schema:{ model:{ fields:{ utcdate:{ type:"date" }, localdate:{ type:"date" } } } } }, height:360, groupable:true, scrollable:true, sortable:true, pageable:true, columns:[ { field:"utcdate", title:"local from UTC", format:"{0:yyyy-MM-dd HH:mm:ss}", width: 150 }, { field:"utcdate", title:"UTC from UTC", format:"{0:u}", width: 150 }, { field:"utcdate", title:"UTC-S from UTC", format:"{0:s}", width: 150 }, { field:"localdate", title:"local from local", format:"{0:yyyy-MM-dd HH:mm:ss}", width: 150 }, { field:"localdate", title:"UTC from local", format:"{0:u}", width: 150 }, { field:"localdate", title:"UTC-S from local", format:"{0:s}", width: 150 } ]});Looking at the Kendo UI source code for parsing dates, it clearly does not have a check for the "Z" timezone marker. And is also missing a UTC() function call to create the date. The formatting functions also don't use the JavaScript Date UTC functions.
Can this be fixed globally somehow?
Best Regards,
Wannes.