Status: Untriaged
Owner: ----

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

What steps will reproduce the problem?
1. Create date with 0s
2. Create date without 0s
3. Notice discrepancy
4. (Also fails with Date#parse)

What is the expected output?
new Date("2016-01-01") => Jan 1, 2016
new Date("2016-1-1") => Jan 1, 2016
new Date("2016-012-01") => Dec 1, 2016
Date.parse("2016-01-01") === Date.parse("2016-1-1") => true

What do you see instead?
new Date("2016-01-01") => Dec 31, 2015
new Date("2016-1-1") => Jan 1, 2016
new Date("2016-012-01") => Dec 1, 2016
Date.parse("2016-01-01") === Date.parse("2016-1-1") => false



Attachments:
        Screen Shot 2015-07-01 at 3.43.24 PM.png  314 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