]> git.ipfire.org Git - thirdparty/glibc.git/commit
time: Set daylight to 1 for matching DST/offset change (bug 29951)
authorFlorian Weimer <fweimer@redhat.com>
Thu, 5 Jan 2023 17:21:25 +0000 (18:21 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 10 Jan 2023 15:27:23 +0000 (16:27 +0100)
commite05036b194559cbfcdfcfb1b920d37b939e3e35c
treefe4f76ea7dde9e56a3891f779847a3af09030832
parentdbd23eaca95eb0264b6325c7286a4b370a67404d
time: Set daylight to 1 for matching DST/offset change (bug 29951)

The daylight variable is supposed to be set to 1 if DST is ever in
use for the current time zone.  But __tzfile_read used to do this:

  __daylight = rule_stdoff != rule_dstoff;

This check can fail to set __daylight to 1 if the DST and non-DST
offsets happen to be the same.

(cherry picked from commit 35141f304e319109c322f797ae71c0b9420ccb05)
NEWS
time/tzfile.c
timezone/Makefile
timezone/testdata/XT6 [new file with mode: 0644]
timezone/tst-bz29951.c [new file with mode: 0644]