Skip to content

Commit b7148db

Browse files
committed
reset artificial timezone when using newlib
1 parent 8ec93dc commit b7148db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp8266/time.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ void configTime(const char* tz, const char* server1, const char* server2, const
122122
char tzram[strlen_P(tz) + 1];
123123
memcpy_P(tzram, tz, sizeof(tzram));
124124
setenv("TZ", tzram, 1/*overwrite*/);
125+
sntp_set_timezone_in_seconds(0);
125126
tzset();
126127

127128
sntp_init();

0 commit comments

Comments
 (0)