set tz config from string if unset (#4979)

This commit is contained in:
Jonathan Bennett 2024-10-07 05:09:19 -05:00 committed by GitHub
parent 234a56446b
commit 93d874b013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -718,6 +718,7 @@ void setup()
setenv("TZ", "GMT0", 1);
} else {
setenv("TZ", (const char *)slipstreamTZString, 1);
strcpy(config.device.tzdef, (const char *)slipstreamTZString);
}
}
tzset();