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:
parent
8b3b60056a
commit
05d28bc045
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user