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