[Webkit-unassigned] [Bug 138427] New: Incorrect timezone information used for British Standard time for 1970

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 5 08:58:02 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=138427

            Bug ID: 138427
           Summary: Incorrect timezone information used for British
                    Standard time for 1970
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bzbarsky at mit.edu

Consider this expression:

  (new Date(0)).toLocaleString()

When run in the UK timezone, JavaScriptCore returns:

  "January 1, 1970 at 1:00:00 AM GMT+1"

which is correct: at the time BST was GMT+1 due to he British Standard Time experiment; see http://en.wikipedia.org/wiki/British_Summer_Time#Periods_of_deviation

However this expression:

  +(new Date(1970, 0, 1))

returns 0 in JavaScriptCore, whereas the correct value is -3600000, because the provided date/time is in local time, which was one hour ahead of GMT in 1970.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141105/41d79794/attachment-0002.html>


More information about the webkit-unassigned mailing list