Setting DateTime in Chrome results in wrong located time dsiplay

2 posts, 0 answers
  1. Timo
    Timo avatar
    5 posts
    Member since:
    Jan 2011

    Posted 13 Jul 2015 Link to this post

    Hi,

    there seems to be a difference in parsing date time in Chrome compared to other browsers.

    It can be reproduced using the Telerik dojo with the Kendo DateTimePicker API Example.

    When I modify the setValue function like this...

                var setValue = function () {
                       var date = new Date('2015-07-13T12:33:44');
                       datetimepicker.value(date);                    
                      };
    in Chrome the DateTime Picker shows "7/13/2015 2:33 PM"

    When doing the same with IE or Firefox, I'll get "7/13/2015 12:33 PM".

     

    The date time format is what I get from the database. So I need to make this work anyhow.

    Any ideas?

     

    Regards

    Timo

     

     

     

  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 15 Jul 2015 Link to this post

    Hello Timo,

     

    It is a bug in the Google Chrome implementation. We do have a solution though :)

    http://dojo.telerik.com/UHumA

     

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top