diff --git a/platformio.ini b/platformio.ini index 608c99e..408d44d 100644 --- a/platformio.ini +++ b/platformio.ini @@ -22,7 +22,7 @@ lib_deps = fetchOTA INA233 ESP32Ping - https://github.com/x821938/elog + https://github.com/tobimai/elog.git#fix-syslog board_build.partitions = default.csv upload_protocol = espota upload_port = 192.168.5.205 @@ -39,7 +39,7 @@ lib_deps = bblanchon/ArduinoJson@^6.21.3 jsc/ArduinoLog ESP32Ping - https://github.com/x821938/elog + https://github.com/tobimai/elog.git#fix-syslog board_build.partitions = default.csv upload_protocol = espota upload_port = 192.168.4.18 diff --git a/src/main.cpp b/src/main.cpp index 2baa92e..ec8a34c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -223,8 +223,8 @@ void setup() } logger.log(0, DEBUG, "Getting time now"); - // Configure time with a GMT offset and daylight offset in seconds. - configTime(3600, 0, "pool.ntp.org"); + // Configure time to UTC + configTime(0, 0, "pool.ntp.org"); // Wait until a valid time is obtained (time > 8 hours in seconds) time_t now = time(NULL);