Adding timezone support

This commit is contained in:
jpirnay
2026-03-26 18:46:28 +01:00
parent 166ce73e2d
commit 6e8254b815
11 changed files with 457 additions and 0 deletions
+3
View File
@@ -30,6 +30,9 @@ namespace HalClock {
/// Returns true if the sync succeeded.
bool syncNtp();
/// Apply timezone/DST rules via the POSIX TZ string for the given setting.
void applyTimezone(uint8_t timeZoneSetting);
/// Call just before deep sleep. Snapshots the current system time to RTC
/// memory and NVS so it can be restored on wake / cold boot. Pass true when
/// the LP timer is kept alive during sleep.