I am trying to create correct Date object
new Date("December 15, 2015")
I expect this
2015-12-15T00:00:00.000Z
But the actual outcome is this
2015-12-14T16:00:00.000Z
What is wrong?
I am trying to create correct Date object
new Date("December 15, 2015")
I expect this
2015-12-15T00:00:00.000Z
But the actual outcome is this
2015-12-14T16:00:00.000Z
What is wrong?
Run your node like this:
$ TZ=UTC node
and you don't have local time zone issues.