Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Setting DateTime in Chrome results in wrong located time dsiplay

$
0
0

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

 

 

 


Viewing all articles
Browse latest Browse all 94857

Latest Images

Trending Articles



Latest Images