Init timezone on boot

This commit is contained in:
samuelbles07
2024-12-06 03:55:55 +07:00
parent 6186e3eca0
commit 424d1d89fa

View File

@ -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());