mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
sntp_localtime: return -1 in tm_isdst field (#2010)
This commit is contained in:
parent
35fd2ccd52
commit
6f3785b4b7
@ -438,7 +438,7 @@ sntp_mktm_r(const time_t * tim_p ,struct tm *res ,int is_gmtime)
|
|||||||
// res->tm_isdst = -1;
|
// res->tm_isdst = -1;
|
||||||
// }
|
// }
|
||||||
// else
|
// else
|
||||||
res->tm_isdst = 0;
|
res->tm_isdst = -1;
|
||||||
|
|
||||||
offset = (res->tm_isdst == 1 ? sntp__tzrule[1].offset : sntp__tzrule[0].offset);
|
offset = (res->tm_isdst == 1 ? sntp__tzrule[1].offset : sntp__tzrule[0].offset);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user