Arduino News here

Moderator: igrr

User avatar
By dannybackx
#70982 I wrote an app in two versions. It's supposed to switch a light on and off to spoof burglars.

The one version is with time() and configTime(), the other uses the sntp_ calls.

Both seem to forget about the timezone after a while. At first the clock is right, a couple of hours later the device seems to think it's in London.

Any clues ?
User avatar
By mrburnette
#70993
dannybackx wrote:I wrote an app in two versions. It's supposed to switch a light on and off to spoof burglars.

The one version is with time() and configTime(), the other uses the sntp_ calls.

Both seem to forget about the timezone after a while. At first the clock is right, a couple of hours later the device seems to think it's in London.

Any clues ?


I do it this-a-way

https://www.hackster.io/rayburne/nist-date-amp-time-with-esp8266-and-oled-display-e8b9a9

Ray