Skip to content

Commit 7d609c5

Browse files
committed
tools/timezones: update timezone database, and improve TZ compiler
Our TZ compiler is somewhat out of data, and needs to use "rearguard" format rather than "vanguard" format. Luckily, the Olson database has a script, "ziguard.awk", that converts between forms (this fixes Ireland DST). On the other hand, ziguard.awk had a different form of normalizing %z than we were used to, and we did not support some of those formats when we went to parse. So now we support those formats. Tested by diffing the textual output of tools/timezones.py old vs. new. License: GPL-3.0-or-later Signed-off-by: Joshua Wise <[email protected]>
1 parent 4aade82 commit 7d609c5

File tree

5 files changed

+980
-958
lines changed

5 files changed

+980
-958
lines changed

LICENSES/LicenseRef-PD-2.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file is in the public domain, so clarified as of
2+
# 2009-05-17 by Arthur David Olson.

REUSE.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ SPDX-FileCopyrightText = "Thomas Nagy, 2005-2018 (ita)"
4444
path = [".github/**", ".git*", "bin/boot/*", "requirements*.txt"]
4545
SPDX-License-Identifier = "Apache-2.0"
4646
SPDX-FileCopyrightText = "2025 Core Devices"
47+
48+
[[annotations]]
49+
path = "resources/normal/base/tzdata/timezones_olson.txt"
50+
SPDX-License-Identifier = "LicenseRef-PD-2"
51+
SPDX-FileCopyrightText = "Arthur David Olson"

0 commit comments

Comments
 (0)