sqfmi / Watchy

Watchy - An Open Source E-Ink Smartwatch
http://www.sqfmi.com
MIT License
1.83k stars 319 forks source link

Adding Daylight savings offset for NTPClient? - Ignore. Sleepless coder Error. #245

Closed theghostglitch closed 3 months ago

theghostglitch commented 3 months ago

NTPClient is able to do DST offsets.

line 1078 of Watchy.cpp version 1.4.10. where: NTPClient timeClient(ntpUDP, ntpServer.c_str(), gmt); could have: NTPClient timeClient(ntpUDP, ntpServer.c_str(), dst, gmt);

Of course it would need all of the references in the code pointing to this line to include an offset variable in the settings.h.

At the moment, I just changed it in watchy.cpp to NTPClient timeClient(ntpUDP, ntpServer.c_str(), 3600, gmt);

All because I don't want to use weather data.

But for some reason that doesn't work....

theghostglitch commented 3 months ago

Never mind.... I read the documents wrong.... Was skimming too quickly.