Unable to select starting of daylight savings

2 posts, 0 answers
  1. Craig
    Craig avatar
    19 posts
    Member since:
    Jun 2014

    Posted 20 Oct 2014 Link to this post

    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?

  2. Vladimir Iliev
    Vladimir Iliev avatar
    2190 posts

    Posted 22 Oct 2014 Link to this post

    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
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top