Just had a thought regarding the month number being incorrect. I have a feeling that Javascript dates work from a 0 index for the month field when you use something like date.getMonth() (i.e. January = 0, February = 1 etc.) that might be why December is being displayed as 11 instead of 12
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.
Just had a thought regarding the month number being incorrect. I have a feeling that Javascript dates work from a 0 index for the month field when you use something like date.getMonth() (i.e. January = 0, February = 1 etc.) that might be why December is being displayed as 11 instead of 12