From 424d1d89fad0222a87a02c16af8701c3c1b955c5 Mon Sep 17 00:00:00 2001 From: samuelbles07 Date: Fri, 6 Dec 2024 03:55:55 +0700 Subject: [PATCH] Init timezone on boot --- examples/OneOpenAir/OneOpenAir.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/OneOpenAir/OneOpenAir.ino b/examples/OneOpenAir/OneOpenAir.ino index bfa9a95..2cdf32d 100644 --- a/examples/OneOpenAir/OneOpenAir.ino +++ b/examples/OneOpenAir/OneOpenAir.ino @@ -135,6 +135,10 @@ void setup() { Serial.begin(115200); delay(100); /** For bester show log */ + // Set timezone to UTC + setenv("TZ", "UTC-0", 1); + tzset(); + /** Print device ID into log */ Serial.println("Serial nr: " + ag->deviceId());