]> Savannah Git Hosting - gnulib.git/commit
timegm: ignore incoming tm_isdst
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Oct 2024 16:12:42 +0000 (09:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Oct 2024 16:16:25 +0000 (09:16 -0700)
commit836c32a5915826c529b310981a149050bdd9db14
tree033495c9d76e688f4ff93fa505e3c7d2e0c45859
parent5e30cf246f1fc72a76aa270e54fd2227e1c86526
timegm: ignore incoming tm_isdst

Problem reported by Florian Weimer via a proposed glibc patch in:
https://sourceware.org/pipermail/libc-alpha/2024-October/160310.html
* lib/mktime.c (__mktime_internal): Ignore any tm_isdst request
if the timezone never observes DST, as is the case for timegm.
* m4/mktime.m4 (gl_PREREQ_MKTIME): Define new C macro __daylight
if needed.
ChangeLog
lib/mktime.c
m4/mktime.m4