saheb11 / datejs

Automatically exported from code.google.com/p/datejs
Other
0 stars 0 forks source link

Parse ISO8601 date, time in resulting date object not set properly. #87

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Execute the following in Pacific Time time zone: var
d1=Date.parse("2009-01-20T19:50:11Z"), the resulting date object does not
have time set properly.

What is the expected output? What do you see instead?
When the resulting date object is alerted I expected:
 Tue Jan 20 2009 11:50:11 GMT-0800 (Pacific Standard Time) 
But instead got:
 Tue Jan 20 2009 19:50:11 GMT-0800 (Pacific Standard Time) 

What version of the product are you using? On what operating system?
checked out from Trunk.  Win XP. FF 3.0.14

Please provide any additional information below.

Original issue reported on code.google.com by ptong1...@gmail.com on 15 Oct 2009 at 9:55

GoogleCodeExporter commented 8 years ago
I also have this problem - Safari 4.0.5, Snow Leopard, as well as Safari 5.1, 
Lion

Original comment by monstrou...@gmail.com on 24 Oct 2011 at 11:53

GoogleCodeExporter commented 8 years ago
Works perfectly in the current build of my fork: 
https://github.com/abritinthebay/datejs/

The current version of DateJS on this site is busted for timezone parsing. Lots 
of fixes in my fork around that.

Original comment by darkcr...@gmail.com on 14 Sep 2013 at 10:15