[Bug time/33971] mktime()/localtime() sets tm.tm_{gmtoff,zone} according to TZDEFRULES when falling back to it
me at ziyao dot cc
sourceware-bugzilla@sourceware.org
Tue Mar 10 08:31:01 GMT 2026
https://sourceware.org/bugzilla/show_bug.cgi?id=33971
--- Comment #3 from Yao Zi <me at ziyao dot cc> ---
(In reply to Andreas Schwab from comment #1)
> None of the dates in the test program trigger a fallback, there are always
> enough transitions in the EST5EDT file (until 2037).
Both glibc's zic and IANA tzcode's zic generate transitions from 1900 to 2038
for compatibility only if a "fat" tzif file is requested through "-b fat"
argument (see timezone/zic.c:3202), thus whether transitions are enough or not
is a packaging issue.
Even if there are transitions until 2037 in posixrules, mktime()/localtime()
will still give out obviously unreasonable tm_gmtoff/tm_zone when invoked with
dates after 2037.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list