Comment #4 on issue 4265 by [email protected]: Inconsistent behavior in date parse
https://code.google.com/p/v8/issues/detail?id=4265

It appears that it's only parsing a UTC string when there is a single zero prepended to a single-digit month. The opposite is true with a two digit month.

See following:

new Date("2015-01-01")
Wed Dec 31 2014 19:00:00 GMT-0500 (Eastern Standard Time)
new Date("2015-1-01")
Thu Jan 01 2015 00:00:00 GMT-0500 (Eastern Standard Time)
new Date("2015-000001-01")
Thu Jan 01 2015 00:00:00 GMT-0500 (Eastern Standard Time)
new Date("2015-0000012-01")
Tue Dec 01 2015 00:00:00 GMT-0500 (Eastern Standard Time)
new Date("2015-012-01")
Tue Dec 01 2015 00:00:00 GMT-0500 (Eastern Standard Time)
new Date("2015-12-01")
Mon Nov 30 2015 19:00:00 GMT-0500 (Eastern Standard Time)

Attachments:
        dates.PNG  26.2 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to