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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 4 02:34:46 PST 2020


--- Comment #9 from Joren Broekema <joren.broekema at gmail.com> ---
I looked a bit further.
https://en.wikipedia.org/wiki/Daylight_saving_time#History gives some background on why this is happening for certain years. Also, I don't think Intl is at fault, I have issues with the native Date parsing process

> new Date('1939-12-06')
< Wed Dec 06 1939 01:00:00 GMT+0100 (CET)

> new Date('12/06/1939')
< Wed Dec 06 1939 00:00:00 GMT+0100 (CET)

So it parses it differently based on how you supply the date string.

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/20200304/9d21892e/attachment-0001.htm>

More information about the webkit-unassigned mailing list