Annoying javascript timezone adjustment issue
I have set up a JSON endpoint that returns the current time from server. For example: { "myservertime": "2011-10-02T23:00+02:00" } So this is the CET summer time right now. Now, I also have a jQuery code that parses that very well. $.sysTime = function(success) { $.ajax({ url: '/jsontimepath/', dataType: 'json', async: false, success: function(json){ sysDateTime = new Date(Date.parse(json.myservertime)); console.log('The system time now is: ' + sysDateTime) } }); return sysDateTime; }; The problem is that when I check the console, it still shows wrong time... It is still affected by the