mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-14 15:16:40 +00:00
NodePrefs::tz_offset_hours defaults to 0 (UTC) -- correct for real hardware, which has no other way to know the visitor's timezone besides Settings > System > Timezone. SimRTCClock (see718dbdbe) is already correct live UTC (time(NULL)), but without a timezone applied, a demo instance's Clock screen displayed correct-but-UTC time, which just reads as "wrong" to a visitor who never opened Settings -- e.g. 20:40 shown while it was really 22:40 CEST. This is the other half of the site's "would be nice if the time was synced with the computer" ask;718dbdbeonly fixed the stale-IDBFS-restore half. sim_test_set_timezone_hours(int) is a new sim-only hook, same shape as sim_test_show_all_home_pages(): meshcore-solo-site calls it once after boot with the browser's own timezone offset. Whole hours only (tz_offset_hours is an int8_t) -- same limit a real device's own Settings field has. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018iubftDmKNWmkNnhJRz8UH