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

Unable to select starting of daylight savings

1 Answer 35 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 20 Oct 2014, 03:10 PM
I am currently developing a page where the user is going to pick when daylight savings starts and ends.

Unfortunately when you select the date 3/9/2014 2:00 AM the kendo ui datetime picker changes the selection to 3/9/2014 1:00 AM.

Is there a way to ignore this? Or some way to not have the widget auto correct itself?

Thanks

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 22 Oct 2014, 08:44 AM
Hi Craig,

Basically the DateTimePicker internally works with JavaScript Date object, however when you try to create such date the browser automatically adjusts it if the given hour is not available due to DST changes. In current case I would suggest to use two different widgets (one DatePicker for selecting the date and one TimePicker for selecting the time) - this way the dates will not be adjusted by the browser as the TimePicker date part will be different date.
Also please not that currently the TimePicker doesn't support setting explicitly the date part of the Date object used for creating the dates, however this feature is already in our dev team queue (for updates on the matter you can regularly check our RoadMap).

Kind Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Date/Time Pickers
Asked by
Craig
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or