agoodWatch icon indicating copy to clipboard operation
agoodWatch copied to clipboard

Other timezones

Open ricsim opened this issue 3 years ago • 3 comments

It seems you can only set the time via NTP. But it is 2 hours off as I am here in CEST. How can I change the timezone or manually set the time?

ricsim avatar Aug 01 '20 12:08 ricsim

OK ... I noticed there is a define: #define RTC_TIME_ZONE "CEST-2" Now when I synchronize with NTP it shows the correct time. After the screen times out, it shows completely false time. Maybe issue with writing the new NTP time into the RTC??

ricsim avatar Aug 02 '20 09:08 ricsim

Yeah... same problem here. It syncs the wrong time in the first place (17:58 instead of 20:58) and I am living in CEST+1 which is also set in the sketch... and after that when the screen times out the time is completely wrong

careyer avatar Aug 20 '20 19:08 careyer

The instructions for setting the correct time string are in the gui.h file immediately above the #define RTC_TIME_ZONE definition. CEST, CEST-2 and CEST-1 do not appear in the spreadsheet at https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv Find a city in your time zone and set that string. Also continue to read the comment and it will warn you that the existing simpleWatch code will often first return an incorrect time. In which case just cancel the time update and request a new one.

AlexGoodyear avatar Aug 21 '20 18:08 AlexGoodyear