[Webkit-unassigned] [Bug 161623] toLocaleDateString() resolves incorrect date for some old dates

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 27 04:45:56 PST 2020


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

Joren Broekema <joren.broekema at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joren.broekema at gmail.com

--- Comment #8 from Joren Broekema <joren.broekema at gmail.com> ---
I think I was able to reproduce this bug on Safari 13.0.5 for MacOS Mojave 10.14.6, but with Intl.DateTimeFormat. 

console.log(new Intl.DateTimeFormat('en-GB').format(new Date('12/06/1939'))); 

Results in 11/06/1939. So 1 day off.

Strangely, anything between year 1940 and 1945 formats correctly. Then for 1946 up until 1976 it is off by 1 again. 1977 and onwards it seems to be correct, but I didn't check for all values so not 100% sure there.

-- 
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/20200227/8371c5b3/attachment.htm>


More information about the webkit-unassigned mailing list