[Bug time/32819] Paraguay Cancels DST
yangyanchao6 at huawei dot com
sourceware-bugzilla@sourceware.org
Fri Mar 28 09:42:47 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=32819
--- Comment #5 from yangyanchao6 at huawei dot com <yangyanchao6 at huawei dot com> ---
> No, the program assumes the latest TZDB. However, the program is invoking
> mktime incorrectly, by giving it tm_isdst=0 during a period when DST is in
> effect. When this happens, the results are not as predictable as the program
> seems to assume, because mktime can choose any UTC offset valid during some
> period when tm_isdst=0, and use that offset; here, mktime is choosing a
> valid offset but one that doesn't match the programmer's expectations.
Ok I see, you mean tm_isdst should be based on facts, not assumptions?
If this is the wrong way to use the mktime interface, is there another
interface that can get DSToffset?
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list