From 5249c794d14a920185ebfe1def49e1a7c092a562 Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Thu, 18 Aug 2022 19:04:13 +0200 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B2=D0=B2=D0=BE=D0=B4=20=D1=87=D0=B0=D1=81=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=8F=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/NTP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NTP.cpp b/src/NTP.cpp index ca9eb875..16f8d422 100644 --- a/src/NTP.cpp +++ b/src/NTP.cpp @@ -14,7 +14,7 @@ void ntpInit() { synchTime(); return; } - breakEpochToTime(unixTime + 3 * 60 * 60, _time_local); + breakEpochToTime(unixTime + jsonReadInt(settingsFlashJson, F("timezone")) * 60 * 60, _time_local); breakEpochToTime(unixTime, _time_utc); String timenow = getTimeLocal_hhmm(); static String prevTime;