Moving this to the ESP8266 section...
I'm not sure setTime is implemented on ESP8266, but if it is, it takes the seconds since 1970 - and Date returns the milliseconds.
setTime
@Gordon started
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.
Moving this to the ESP8266 section...
I'm not sure
setTime
is implemented on ESP8266, but if it is, it takes the seconds since 1970 - and Date returns the milliseconds.