From e86c9126ee7a4560fc895b54fc1f9d3f62b84ff3 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Mon, 3 May 2021 10:58:37 +0200 Subject: [PATCH] Small fixes. --- WLAN_Thermometer.ino | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/WLAN_Thermometer.ino b/WLAN_Thermometer.ino index 8c8e040..847017a 100644 --- a/WLAN_Thermometer.ino +++ b/WLAN_Thermometer.ino @@ -1,3 +1,6 @@ +// Compiling: +// ESP32 Wroover Module +// // Use from 0 to 4. Higher number, more debugging messages and memory usage. //#define _WIFIMGR_LOGLEVEL_ 4 //#define DEBUG 1 @@ -143,7 +146,7 @@ void setup() lcd.setCursor(0, 3); lcd.print("Getting time..."); - DateTime.setTimeZone(1); + DateTime.setTimeZone("UTC+1"); DateTime.setServer(NTP_SERVER); DateTime.begin(NTP_TIMEOUT); /* while (!DateTime.isTimeValid()) @@ -197,7 +200,7 @@ void loop() if (!DateTime.isTimeValid() && millis() - 10000 > next_time_check) { next_time_check = millis(); - DateTime.setTimeZone(1); + DateTime.setTimeZone("UTC+1"); DateTime.forceUpdate(); if (is_wintertime(DateTime.getTime()) == false) add_summertime = 1;