Okay, this is bizarre. I've got this Date object:
2015-10-13T00:00:00.000Z
I call this function:
date.setHours(12, 0, 0, 0);
...and I get get back this:
2015-10-12T19:00:00.000Z
Why in the world would that be happening?
Okay, this is bizarre. I've got this Date object:
2015-10-13T00:00:00.000Z
I call this function:
date.setHours(12, 0, 0, 0);
...and I get get back this:
2015-10-12T19:00:00.000Z
Why in the world would that be happening?
I ran into this kind of problem once, though this helped me.
var d = new Date();
d.setUTCHours(15);
result:
Sat May 23 2015 20:03:43 GMT+0500 (PKT)