Summary: | Date.getDate() returns bad values in some time zones | ||
---|---|---|---|
Product: | WebKit | Reporter: | Daniel Herbolt <daniel> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | barraclough, daniel, ggaren, mark.lam |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | Unspecified |
Description
Daniel Herbolt
2014-09-25 22:45:03 PDT
Same as bug 137003? (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 Thank you for confirming, duping to the older bug. *** This bug has been marked as a duplicate of bug 137003 *** |