Bug 2155352
Summary: | glibc: tzset() with TZ=Africa/Tripoli does not set daylight to 1 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Takayuki Nagata <tnagata> |
Component: | glibc | Assignee: | glibc team <glibc-bugzilla> |
Status: | CLOSED ERRATA | QA Contact: | Sergey Kolosov <skolosov> |
Severity: | unspecified | Docs Contact: | Jacob Taylor Valdez <jvaldez> |
Priority: | unspecified | ||
Version: | 9.1 | CC: | ashankar, codonell, dj, fweimer, jvaldez, kmoriwak, markobri, mnewsome, pfrankli, sipoyare, skolosov |
Target Milestone: | rc | Keywords: | Bugfix, Patch, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | glibc-2.34-57.el9 | Doc Type: | Bug Fix |
Doc Text: |
.The `tzset` function in `glibc` now sets the daylight variable to a non-zero value if there is any DST rule in the TZ data
Previously, the `tzset` function in `glibc` would set the daylight variable to 0 if the last DST transition in the time zone data file did not result in a clock change due to a simultaneous change in the standard time offset. Consequently, when applications use the daylight variable to check if DST was ever active, they do not get the right result and perform incorrect actions based on this information. To fix this, the `tzset` function now sets the daylight variable to a non-zero value if there is any DST rule in the time zone data, regardless of offset. As a result, applications now observe the presence of DST rules regardless of offset changes.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2023-05-09 08:16:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 2160734 | ||
Bug Blocks: |
Description
Takayuki Nagata
2022-12-21 00:47:23 UTC
Fixed upstream: commit 35141f304e319109c322f797ae71c0b9420ccb05 Author: Florian Weimer <fweimer> Date: Thu Jan 5 18:21:25 2023 +0100 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. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (glibc bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2481 |