Date.getTimezoneOffset wrong on osx and linux for dates < 1950 and dates > 2037

NEW
Unassigned

Status

Tamarin
Virtual Machine
8 years ago
8 years ago

People

(Reporter: Chris Peyer, Unassigned)

Tracking

unspecified
Future
x86
Mac OS X
Bug Flags:
in-testsuite +
flashplayer-qrb +
flashplayer-triage +

Details

(Reporter)

Description

8 years ago
as:
expect = (new Date(2005, 7, 1).getTimezoneOffset());
print(expect)
for (var i=0; i<2420; i++) {
    actual = (new Date(i, 7, 1).getTimezoneOffset());
    if (actual != expect)
        print(i, actual)
}

actual: offset is 480 for dates < 1950 and dates > 2037
expected: offset = 420

Found in spidermonkey/js1_5/Regress/regress-58116
Flags: in-testsuite+
Flags: flashplayer-triage+
Flags: flashplayer-qrb?

Updated

8 years ago
Flags: flashplayer-qrb? → flashplayer-qrb+
Target Milestone: --- → Future
(Reporter)

Comment 1

8 years ago
Happens on osx and all linux platforms.
Summary: Date.getTimezoneOffset wrong on osx for dates < 1950 and dates > 2037 → Date.getTimezoneOffset wrong on osx and linux for dates < 1950 and dates > 2037
(Reporter)

Updated

8 years ago
Duplicate of this bug: 560163
You need to log in before you can comment on or make changes to this bug.