Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 547eb42

Browse files
committed
tentative fix for #712322: modification time stamp checking failed
when DST began.
1 parent f2f174f commit 547eb42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/zipimport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ parse_dostime(int dostime, int dosdate)
993993
stm.tm_mday = dosdate & 0x1f;
994994
stm.tm_mon = ((dosdate >> 5) & 0x0f) - 1;
995995
stm.tm_year = ((dosdate >> 9) & 0x7f) + 80;
996-
stm.tm_isdst = 0; /* wday/yday is ignored */
996+
stm.tm_isdst = -1; /* wday/yday is ignored */
997997

998998
return mktime(&stm);
999999
}

0 commit comments

Comments
 (0)