From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 86EA1385841A; Mon, 2 Jan 2023 09:51:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 86EA1385841A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672653097; bh=x2QFxekqaxTuWMxGJ/lxnEZHM1Qk5WyRz4pCzF8M7hI=; h=From:To:Subject:Date:From; b=uLqNyGxrBI2GJwNWN9ZTot111Rr3ZPbZz/Y6+cyFRQx56kv916MXwGbl3EvxcXCko ExuJ8o9bDAAVaffO9pUg6J6Urq015JH8KAmm+zIN/uD0wABtyyFisnz3On06i3jHvG V1iPovKqsSr/IUkRopSq32b2UTzYfvvRjeUzlwu4= From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug time/29951] New: daylight variable not set correctly if last DST change coincides with offset change Date: Mon, 02 Jan 2023 09:51:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: time X-Bugzilla-Version: 2.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29951 Bug ID: 29951 Summary: daylight variable not set correctly if last DST change coincides with offset change Product: glibc Version: 2.37 Status: NEW Severity: normal Priority: P2 Component: time Assignee: unassigned at sourceware dot org Reporter: fweimer at redhat dot com Target Milestone: --- The daylight variable is supposed to be set to 1 if DST is every in use for= the current time zone. But __tzfile_read does this: __daylight =3D rule_stdoff !=3D rule_dstoff; This check can fail to set __daylight to 1 if the DST and non-DST offsets happen to be the same. The current tz data for Africa/Tripoli exposes this bug. --=20 You are receiving this mail because: You are on the CC list for the bug.=