I'm creating a new Date()
with the current time and setting its hours
to 0. Until some days ago everything was fine, but now its getting
23:00 from the past day instead 00:00 from the current.
Does anyone know why?
The code can be found here https://jsfiddle.net/f1kshewz/2/
Output:
Sat Oct 17 2015 23:00:00 GMT-0300 (BRT)