Kendo Grid automatically converting datetime provided from db, to browsers' local time.

1 Answer 235 Views
Grid
Chhavi
Top achievements
Rank 1
Chhavi asked on 11 Jul 2022, 08:31 PM
Hi Team, 
Not Sure which recent update of the kendo library introduced this auto date time zone conversion in our project. After receiving UTC date from server, the kendo grid changes it to local time. Can you please help me with -

- Which version of kendo has this feature starting from?
- Is there any setting that we can set it off so that the grid shows exact the same datetime as provided from db?

Thanks,
Chhavi

1 Answer, 1 is accepted

Sort by
0
Yanislav
Telerik team
answered on 14 Jul 2022, 09:00 AM

Hello Chhavi,

By default, on the browser, the dates are converted to the local time zone. The scenarios where Grid is used are no exceptions.
On the client, there is no DateTime type, so it works with JavaScript Date objects. Thus we are bound to the same rules and functionality the Date object has in the browser.

For more information, you can review the following discussion from our forum:
https://www.telerik.com/forums/kendogrid-automatically-converting-the-date-to-local-timezone

Here is a part of our documentation where you can read more about the issue and possible ways to solve it:

https://docs.telerik.com/kendo-ui/knowledge-base/grid-changes-timezone

Check the section "Possible Workarounds". There are three different methods you can try to use, so you can solve the problem.

Regards,
Yanislav
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Chhavi
Top achievements
Rank 1
Answers by
Yanislav
Telerik team
Share this question
or