Skip to content

Commit 6f3785b

Browse files
committed
sntp_localtime: return -1 in tm_isdst field (#2010)
1 parent 35fd2cc commit 6f3785b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/sdk/lwip/src/core/sntp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ sntp_mktm_r(const time_t * tim_p ,struct tm *res ,int is_gmtime)
438438
// res->tm_isdst = -1;
439439
// }
440440
// else
441-
res->tm_isdst = 0;
441+
res->tm_isdst = -1;
442442

443443
offset = (res->tm_isdst == 1 ? sntp__tzrule[1].offset : sntp__tzrule[0].offset);
444444

0 commit comments

Comments
 (0)