[Webkit-unassigned] [Bug 137140] Date.getDate() returns bad values in some time zones

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 29 22:46:57 PDT 2014


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





--- Comment #2 from Daniel Herbolt <daniel at herbolt.com>  2014-09-29 22:46:55 PST ---
(In reply to comment #1)
> Same as bug 137003?

Yes, it looks as the same problem for New Zealand time zone.

1) Set time zone of your OS X to Wellington - New Zealand
2) run following code in Safari Developer console
 a)
 var d = new Date(2014, 8, 28, 0, 0, 0, 0);
 d.toString();

 b) new Date(2014, 8, 28, 0, 0, 0, 0).getDate();
3) see result in console

Expexcted result:
2a) Sun Sep 28 2014 00:00:00 GMT+1200 (NZST)
2b) 28

Actual result:
2a) Sat Sep 27 2014 23:00:00 GMT+1200 (NZST)
2b) 27

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list