durtto / datejs

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

getTimezoneAbbreviation doesn't recognize DST #104

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

> Date.parse('2010-01-01 6:00').getTimezone()
"PST"
> Date.parse('2010-07-01 6:00').getTimezone()
"MST"

the latter should be "PDT".

perhaps relatedly,

> Date.parse('2010-01-01 6:00').isDaylightSavingTime()
true
> Date.parse('2010-07-01 6:00').isDaylightSavingTime()
true

using svn r194 of DateJS and Chrome 5.0.375.70 (Official Build 48679)

Original issue reported on code.google.com by kevin%de...@gtempaccount.com on 21 Jun 2010 at 9:03

GoogleCodeExporter commented 9 years ago
fixed in the current build at my fork: 
http://github.com/abritinthebay/datejs/issues/82

Original comment by darkcr...@gmail.com on 15 Sep 2013 at 7:17