datetimepicker with timezone

2 posts, 0 answers
  1. Sriram
    Sriram avatar
    7 posts
    Member since:
    Dec 2014

    Posted 18 Dec 2014 Link to this post

    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
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3747 posts

    Posted 22 Dec 2014 Link to this post

    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!
     
Back to Top