When you upload code via the IDE it should attempt to set the time with setTime and timezone with E.setTimeZone() using your PC's settings (unless it's been disabled in the IDE settings) - you could do the same yourself. Especially when you're uploading code, nothing stops you from sticking E.setTimeZone(4); to the top of your code to ensure the date functions all use the correct timezone.
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.
When you upload code via the IDE it should attempt to set the time with
setTime
and timezone withE.setTimeZone()
using your PC's settings (unless it's been disabled in the IDE settings) - you could do the same yourself. Especially when you're uploading code, nothing stops you from stickingE.setTimeZone(4);
to the top of your code to ensure the date functions all use the correct timezone.