Updates:
Status: Duplicate
Mergedinto: 2602
Comment #2 on issue 4265 by [email protected]: Inconsistent behavior in
date parse
https://code.google.com/p/v8/issues/detail?id=4265
I can't reproduce the case
new Date("2016-01-01") => Dec 31, 2015
It works correct for me. The rest is not legal date syntax, so not
technically a bug.
@ #1: === is comparing object identity, which would return false even if
both inputs parsed the same. Date.parse behaves the same as invoking the
constructor:
d8> Date.parse("2016-01-01")
1451606400000
d8> Date.parse("2016-1-1")
1451602800000
d8> (new Date("2016-01-01")).valueOf()
1451606400000
d8> (new Date("2016-1-1")).valueOf()
1451602800000
--
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.