1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

reset artificial timezone when using newlib (#6828)

This commit is contained in:
david gauchard 2019-11-24 04:19:16 +01:00 committed by Develo
parent 8b3b60056a
commit 05d28bc045

View File

@ -122,6 +122,7 @@ void configTime(const char* tz, const char* server1, const char* server2, const
char tzram[strlen_P(tz) + 1];
memcpy_P(tzram, tz, sizeof(tzram));
setenv("TZ", tzram, 1/*overwrite*/);
sntp_set_timezone_in_seconds(0);
tzset();
sntp_init();