If I do new Date(Date.now()).getHours() or new Date(Date.now()).getMinutes(), I get the right thing.
But new Date(Date.now()).getMonth() is returning 5 and new Date(Date.now()).getDay() is also returning 5. (That's for today). Yesterday it was 4 for getDay().
This is on 1v92 using standalone Windows IDE espruino_ide_win64_0v65.9
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I've having a weird issue on Puck with datetime.
I have "Send time to Espruino" set in the IDE.
If I do new Date(Date.now()).getHours() or new Date(Date.now()).getMinutes(), I get the right thing.
But new Date(Date.now()).getMonth() is returning 5 and new Date(Date.now()).getDay() is also returning 5. (That's for today). Yesterday it was 4 for getDay().
This is on 1v92 using standalone Windows IDE espruino_ide_win64_0v65.9
Any idea where this offset could be coming from?