[Webkit-unassigned] [Bug 188001] New: Erroneous date calculation when daylight savings transition occurs during midnight
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 25 06:13:55 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=188001
Bug ID: 188001
Summary: Erroneous date calculation when daylight savings
transition occurs during midnight
Product: WebKit
Version: Safari 11
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: tiagohngl at gmail.com
Steps to reproduce:
- Set your system's timezone to BRT (Brasilia time)
- type in new Date(2018, 10, 4) in the console
Expected result (this is what latest Chrome and Firefox return):
Sun Nov 04 2018 01:00:00 GMT-0200 (-02)
Actual result:
Sat Nov 03 2018 23:00:00 GMT-0300 (-03)
The same thing happens when calling `setHours(0, 0, 0, 0)` on `Nov 04 2018`. It goes back to `Nov 3 2018`.
V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3116
--
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/20180725/6e9ce7d0/attachment.html>
More information about the webkit-unassigned
mailing list