mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-31 04:19:15 +03:00
Учитываем часовой пояс при сохранении системного времени во внешнюю RTC
This commit is contained in:
@@ -50,7 +50,7 @@ class RTC : public IoTItem {
|
|||||||
_watch->settimeUnix(ut);
|
_watch->settimeUnix(ut);
|
||||||
SerialPrint("i", F("RTC"), "Устанавливаем время: " + value);
|
SerialPrint("i", F("RTC"), "Устанавливаем время: " + value);
|
||||||
} else if (key == "setSysTime") {
|
} else if (key == "setSysTime") {
|
||||||
_watch->settimeUnix(unixTime);
|
_watch->settimeUnix(unixTime + jsonReadInt(settingsFlashJson, F("timezone")) * 60 * 60);
|
||||||
SerialPrint("i", F("RTC"), F("Запоминаем системное время"));
|
SerialPrint("i", F("RTC"), F("Запоминаем системное время"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user