-->
Page 1 of 1

Cannot find a working timezone library for use with NTP

PostPosted: Fri Mar 04, 2016 3:00 pm
by Piglet
I've searched and searched but I can't seem to find any combination of Arduino-ide based NTP code with working Timezone support.

All I want to do is to periodically get the time via NTP and convert that to local timezone including whatever daylight saving is in place.

I can find plenty of NTP examples, but none with working timezone support.

I'm sure there must be a perfectly good example of this somewhere but I just can't find it. The closest I can find is the thread here- but though it's marked "solved" I can't work out what was done.

Please could some kind person point me in the right direction for something that I can use? I don't want to have to reinvent this wheel!

Thanks in advance.

Re: Cannot find a working timezone library for use with NTP

PostPosted: Sat Mar 05, 2016 4:14 pm
by bbx10node
This sample ESP8266 project gets NTP time, adjusts for timezone, then displays the date and time.

https://github.com/bbx10/esp-pcd-ntp