Closed Bug 994086 Opened 10 years ago Closed 7 years ago

Wrong DST calculation for CEST

Categories

(Core :: JavaScript Engine, defect)

28 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: phil, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/537.75.14

Steps to reproduce:

In Austria DST started on Sunday, 30th March 2014, 02:00 local standard time: http://www.timeanddate.com/worldclock/city.html?n=259

new Date(2014,2,30,2,0) ... Sun Mar 30 2014 03:00:00 GMT+0200 (CET) that should be CEST right?!
new Date(2014,2,30,3,0) ... Sun Mar 30 2014 03:00:00 GMT+0200 (CET) that should be CEST right?!
new Date(2014,2,30,4,0) ... Sun Mar 30 2014 04:00:00 GMT+0200 (CEST)


Actual results:

Sun Mar 30 2014 03:00:00 GMT+0200 (CET)


Expected results:

Sun Mar 30 2014 03:00:00 GMT+0200 (CEST)
Summary: dst cest → Wrong DST calculation for CEST
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Fixed in https://hg.mozilla.org/mozilla-central/rev/b7ef07909cc4


Before (Ubuntu):
new Date(2014,2,30,2,0).toString()
"Sun Mar 30 2014 03:00:00 GMT+0200 (CET)"

new Date(2014,2,30,3,0).toString()
"Sun Mar 30 2014 03:00:00 GMT+0200 (CET)"


After (Ubuntu):
new Date(2014,2,30,2,0).toString()
"Sun Mar 30 2014 03:00:00 GMT+0200 (CEST)"

new Date(2014,2,30,3,0).toString()
"Sun Mar 30 2014 03:00:00 GMT+0200 (CEST)"
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.