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

Timepicker Issue with Api

1 Answer 53 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Elliot
Top achievements
Rank 1
Elliot asked on 17 Mar 2016, 03:28 PM

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?

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 21 Mar 2016, 08:36 AM
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.

Regards,
Kiril Nikolov
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
Elliot
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or