I am trying to set the time on my Espruino loaded esp8266. I am using an http get request and getting a string like "2016-01-25T12:33:20+00:00" back from the server. When I try to set the time it never sets it correctly.
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 am trying to set the time on my Espruino loaded esp8266. I am using an http get request and getting a string like "2016-01-25T12:33:20+00:00" back from the server. When I try to set the time it never sets it correctly.
Using...
setTime(Date.parse("2016-01-25T12:33:20+00:00"));
If I do Date.parse("2016-01-25T12:33:20+00:00");, the ms returned is wrong. If this is not a proper format date string then what is?