mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
feat: summer time - Settings > Summer time (Europe, North America, Australia, New Zealand) puts the clock an hour ahead and back by itself; every local time goes through tzHoursAt(), the alarm keeps its time across the change (a skipped time rings an hour later, a repeated one once)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1166,9 +1166,9 @@ static void tileBadge(lv_obj_t* tile, int n) {
|
||||
lv_obj_align(lv_obj_get_child(tile, -1), LV_ALIGN_TOP_RIGHT, -2, 2);
|
||||
}
|
||||
|
||||
// Local time (NodePrefs::tz_offset_hours), now or at `utc`; false before the clock is set.
|
||||
// Local time (time zone + summer time), now or at `utc`; false before the clock is set.
|
||||
static bool localTime(const NodePrefs* p, struct tm& out, uint32_t utc = rtc_clock.getCurrentTime()) {
|
||||
return localTm(utc, p ? p->tz_offset_hours : 0, out);
|
||||
return localTm(utc, tzHoursAt(p, utc), out);
|
||||
}
|
||||
static const char* const MONTHS[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
||||
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
|
||||
|
||||
Reference in New Issue
Block a user