[Webkit-unassigned] [Bug 12975] New: Layout test failure: DST changes in US affect JavaScript date calculations
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 5 17:55:16 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=12975
Summary: Layout test failure: DST changes in US affect JavaScript
date calculations
Product: WebKit
Version: 522+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: KwhiteRight at gmail.com
According to bug 11157 comment #5,
> According to the spec, history should not take into account what really
> happened but interpolate from a comparable year, where comparable years are
> judged by when Jan 1 happens and if the year is a leap year.
> This will only happen for dates that fall outside of the 1970-2038 range. if
> you fall out of that range then you are offset to a comparable year.
> This is consistent with what most browsers. [sic]
But DST switchover dates just changed in the US, which implies that the
interpolated DST should also change for historical dates. If we accept that,
then in the fast/js/date-big-setdate.html layout test, April 5 1970 should no
longer show a DST change, and the test is currently passing when it shouldn't.
I don't know if this has been discussed at the JS-spec level. It remains to be
seen what "most browsers" will do about it.
If the spec stays the same, then the test needs to be changed to use 8-9 Mar
1970 instead of 4-5 Apr, and getDSTOffset() in kjs/DateMath.cpp needs to be
fixed to match.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list