Корректируем обратно время из RTC когда приходит запрос из ядра

This commit is contained in:
2023-06-29 20:44:12 +03:00
parent fe0c49b5a2
commit 965b340e5c

View File

@@ -40,7 +40,7 @@ class RTC : public IoTItem {
}
unsigned long getRtcUnixTime() {
return _watch->gettimeUnix();
return _watch->gettimeUnix() - jsonReadInt(settingsFlashJson, F("timezone")) * 60 * 60;
}
void onModuleOrder(String &key, String &value) {