mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Корректируем обратно время из RTC когда приходит запрос из ядра
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user