Force KendoDateTimePicker to accept any date and time we select irrespective of time zone

1 Answer 57 Views
Date/Time Pickers
Christy
Top achievements
Rank 1
Christy asked on 27 Nov 2022, 05:01 PM

Iam using the KendoDateTimePicker for MVC.

 

Currently am in GMT+0200 (Israel Standard Time) and i want to select a particular time in in KendoDateTimePicker. For e.g., say the time is 25-Mar-2022 02:00. when i select the time part as 02:00, the time part automatically skips and formats to 03:00, which i know for that datetime +1 hour daylight saving is applicable.

 

Although i reside in this time zone but the data i want to manage is of different countries which has the daylight saving is not applicable.

Can i somehow manage the kendoDateTimePicker date and time without affecting this daylight saving.

Which means the picker should accept all dates and times irrespective of any time zone.

 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 30 Nov 2022, 02:17 PM

Hi,

Thank you for reaching out to us. I've arranged for a product specialist to follow up with you. Please expect to hear from us soon.

Thank you!

Regards, Milena 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/.

Christy
Top achievements
Rank 1
commented on 05 Dec 2022, 05:20 AM

Hi, any update on this?
Anton Mironov
Telerik team
commented on 07 Dec 2022, 09:56 AM

Hi Christy,

Thank you for the details provided. I am Anton from the MVC Team and will try my best in order to assist with achieving the desired behavior.

In general, the described behavoir is not related to the Telerik UI Components. This is the built-in DateTime behavior implemented in JavaScript.

For achieving the desired result, I would recommend using UTC time on both - client and server side. The following article is describing the pointed approach:

Give a try to the approach above and let me know if further assistance is needed.


Kind Regards,
Anton Mironov

Tags
Date/Time Pickers
Asked by
Christy
Top achievements
Rank 1
Answers by
Milena
Telerik team
Share this question
or