Skip to content

Commit

Permalink
sntp_localtime: return -1 in tm_isdst field (esp8266#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Jun 13, 2016
1 parent 35fd2cc commit 6f3785b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/sdk/lwip/src/core/sntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6f3785b

Please sign in to comment.