Kendo UI Grid - UTC Issues

2 posts, 0 answers
  1. Manjit
    Manjit avatar
    1 posts
    Member since:
    Apr 2015

    Posted 24 Apr 2015 Link to this post

    Hi,

     I am have been evaluating the Kendo UI for ASP.NET MVC and I have noticed a date format issue with the Kendo UI Grid when it comes to UTC Format. I have not been able to resolve this so I am hoping someone here will have a solution to this problem.

    Basically I have a created date which is currently stored in the database in UTC Format and when I retrieve this date and bind it to the Kendo UI Grid, the format is coming as

    Tue Apr 21 2015 21:05:35 GMT-0400 (Eastern Daylight Time)

     How can I display this date in the Eastern Daylight Time?

    "April 21, 2015 5:05:35 PM"

     Please let me know if more information is required.

     

  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1442 posts

    Posted 28 Apr 2015 Link to this post

    Hi Manjit,

    This happen because Date objects in JavaScript are always created with a local timezone offset. Please refer to the following example, which illustrates how to tackle the problem:

    Regards,
    Alexander Popov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top