Timepicker Issue with Api

2 posts, 0 answers
  1. Elliot
    Elliot avatar
    59 posts
    Member since:
    May 2012

    Posted 17 Mar 2016 Link to this post

    I have the following timepicker: <input kendo-time-picker k-ng-model="incident.timeOfIncident" />

    If I select 2:00 AM on the server it is appearing as 6:00 AM.  I am assuming this is due to timezones.  The question is how can I pass the correct time of 2:00 AM?

  2. Kiril Nikolov
    Kiril Nikolov avatar
    2598 posts

    Posted 21 Mar 2016 Link to this post

    Hello Elliot,

    The Kendo UI TimePicker works with JavaScript date objects that use the local time zone of the browser and this is actually the default behavior of the JavaScript date. I would suggest you to use UTC time and convert the dates to UTC, so when they are posted on the server they will again be in UTC.

    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top