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

datetimepicker with timezone

1 Answer 167 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sriram
Top achievements
Rank 1
Sriram asked on 18 Dec 2014, 11:51 AM
Hi,

I  am using the 'datetimepicker' . It is displaying as what I am expecting format correctly , But with IST time zone.. I want to format it as GMT timezone

As per following code:
filterable: 
{ui: function (element) {element.kendoDateTimePicker(
                             {
                            format: "MM/dd/yyyy HH:mm:ss"
                              }
                   );}}

Kindly share your suggestion on it

Thanks & Regards
Sriram Nagasundharam

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 22 Dec 2014, 08:49 AM
Hello Sriram,

The Kendo UI DateTimePicker uses JavaScript Date object internally, which is always created using local (browser) time zone. If you would like to avoid this default behavior, then you will need to adjust the date objects to GMT time zone manually and then populate the widget. Note that this is not related to DateTimePicker and you can easily observe the same behavior using a regular Date instance.

Best regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Sriram
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or