Browse Source

Merge 536a8b26dd into 5120aa473b

pull/1799/merge
geronet1 1 month ago
committed by GitHub
parent
commit
a5a117359d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      src/app.cpp

4
src/app.cpp

@ -218,6 +218,10 @@ void app::onNtpUpdate(uint32_t utcTimestamp) {
mTimestamp = utcTimestamp;
DPRINTLN(DBG_INFO, "[NTP]: " + ah::getDateTimeStr(mTimestamp) + " UTC");
CEST.offset = mConfig->sys.timezone * 60 + 1;
CET.offset = mConfig->sys.timezone * 60;
gTimezone.setRules(CEST, CET);
uint32_t localTime = gTimezone.toLocal(mTimestamp);
uint32_t midTrig = gTimezone.toUTC(localTime - (localTime % 86400) + 86400); // next midnight local time
resetTickerByName("midNi");

Loading…
Cancel
Save