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
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!