From 6430dba1d178445d90847baa6bdf6a88093bf580 Mon Sep 17 00:00:00 2001 From: JbLb Date: Thu, 10 Dec 2020 09:16:58 +0100 Subject: [PATCH] Add ajust UTC to local function Display time on DEBUG output --- LibreMetric.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LibreMetric.ino b/LibreMetric.ino index b11668e..cb474a2 100644 --- a/LibreMetric.ino +++ b/LibreMetric.ino @@ -123,8 +123,9 @@ void loop() { server.handleClient(); matrix.fillScreen(LOW); time_t now = time(nullptr); + now = CentralEuropean.toLocal(now); String time = String(ctime(&now)); - //Serial.println(time); + Serial.println(time); time.trim(); time.substring(11,19).toCharArray(time_value, 10); int seconds = time.substring(17,19).toInt();