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

Setting DateTime in Chrome results in wrong located time dsiplay

1 Answer 23 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Timo
Top achievements
Rank 1
Timo asked on 13 Jul 2015, 08:22 AM

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

 

 

 

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 15 Jul 2015, 07:38 AM

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!
 
Tags
Date/Time Pickers
Asked by
Timo
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or