1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

sntp_localtime: return -1 in tm_isdst field (#2010)

This commit is contained in:
Ivan Grokhotkov 2016-06-13 15:29:05 +08:00
parent 35fd2ccd52
commit 6f3785b4b7

View File

@ -438,7 +438,7 @@ sntp_mktm_r(const time_t * tim_p ,struct tm *res ,int is_gmtime)
// res->tm_isdst = -1;
// }
// else
res->tm_isdst = 0;
res->tm_isdst = -1;
offset = (res->tm_isdst == 1 ? sntp__tzrule[1].offset : sntp__tzrule[0].offset);