Skip to content

Commit 9054840

Browse files
author
GitHub Actions
committed
Update tzdata and zoneinfo to version 2022c.
1 parent 99bce0f commit 9054840

File tree

8 files changed

+91
-90
lines changed

8 files changed

+91
-90
lines changed

tzdata/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,9 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \
298298
# guess TM_GMTOFF from other macros; define NO_TM_GMTOFF to suppress this.
299299
# Similarly, if your system has a "zone abbreviation" field, define
300300
# -DTM_ZONE=tm_zone
301-
# and define NO_TM_ZONE to suppress any guessing. These two fields are not
302-
# required by POSIX, but are widely available on GNU/Linux and BSD systems.
301+
# and define NO_TM_ZONE to suppress any guessing. Although these two fields
302+
# not required by POSIX, a future version of POSIX is planned to require them
303+
# and they are widely available on GNU/Linux and BSD systems.
303304
#
304305
# The next batch of options control support for external variables
305306
# exported by tzcode. In practice these variables are less useful
@@ -538,7 +539,7 @@ DATA= $(TDATA_TO_CHECK) backzone iso3166.tab leap-seconds.list \
538539
leapseconds $(ZONETABLES)
539540
AWK_SCRIPTS= checklinks.awk checktab.awk leapseconds.awk \
540541
ziguard.awk zishrink.awk
541-
MISC= $(AWK_SCRIPTS) zoneinfo2tdf.pl
542+
MISC= $(AWK_SCRIPTS)
542543
TZS_YEAR= 2050
543544
TZS_CUTOFF_FLAG= -c $(TZS_YEAR)
544545
TZS= to$(TZS_YEAR).tzs
@@ -567,7 +568,7 @@ VERSION_DEPS= \
567568
tzfile.5 tzfile.h tzselect.8 tzselect.ksh \
568569
workman.sh zdump.8 zdump.c zic.8 zic.c \
569570
ziguard.awk zishrink.awk \
570-
zone.tab zone1970.tab zoneinfo2tdf.pl
571+
zone.tab zone1970.tab
571572
572573
# And for the benefit of csh users on systems that assume the user
573574
# shell should be used to handle commands in Makefiles. . .

tzdata/NEWS

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
News for the tz database
22

3+
Release 2022c - 2022-08-15 17:47:18 -0700
4+
5+
Briefly:
6+
Work around awk bug in FreeBSD, macOS, etc.
7+
Improve tzselect on intercontinental Zones.
8+
9+
Changes to code
10+
11+
Work around a bug in onetrueawk that broke commands like
12+
'make traditional_tarballs' on FreeBSD, macOS, etc.
13+
(Problem reported by Deborah Goldsmith.)
14+
15+
Add code to tzselect that uses experimental structured comments in
16+
zone1970.tab to clarify whether Zones like Africa/Abidjan and
17+
Europe/Istanbul cross continent or ocean boundaries.
18+
(Inspired by a problem reported by Peter Krefting.)
19+
20+
Fix bug with 'zic -d /a/b/c' when /a is unwritable but the
21+
directory /a/b already exists.
22+
23+
Remove zoneinfo2tdf.pl, as it was unused and triggered false
24+
malware alarms on some email servers.
25+
26+
327
Release 2022b - 2022-08-10 15:38:32 -0700
428

529
Briefly:
@@ -83,7 +107,7 @@ Release 2022b - 2022-08-10 15:38:32 -0700
83107

84108
zic no longer complains "can't determine time zone abbreviation to
85109
use just after until time" when a transition to a new standard
86-
time occurs simultanously with the first DST fallback transition.
110+
time occurs simultaneously with the first DST fallback transition.
87111

88112
Changes to build procedure
89113

tzdata/asia

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,8 +1505,8 @@ Zone Asia/Jayapura 9:22:48 - LMT 1932 Nov
15051505
# onwards (which was during the Islamic Republic).
15061506

15071507
# From Francis Santoni (2022-06-01):
1508-
# for Iran and 1977 the effective change is only 20 october
1509-
# (UIT No. 143 17.XI.1977) and not 23 september (UIT No. 141 13.IX.1977).
1508+
# for Iran and 1977 the effective change is only 20 October
1509+
# (UIT No. 143 17.XI.1977) and not 23 September (UIT No. 141 13.IX.1977).
15101510
# UIT is the Operational Bulletin of International Telecommunication Union.
15111511

15121512
# From Roozbeh Pournader (2003-03-15):

tzdata/theory.html

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ <h2 id="naming">Timezone identifiers</h2>
122122
locate the user on a timezone map or prioritize names that are
123123
geographically close. For an example selection interface, see the
124124
<code>tzselect</code> program in the <code><abbr>tz</abbr></code> code.
125-
The <a href="http://cldr.unicode.org">Unicode Common Locale Data
125+
The <a href="https://cldr.unicode.org">Unicode Common Locale Data
126126
Repository</a> contains data that may be useful for other selection
127127
interfaces; it maps timezone names like <code>Europe/Prague</code> to
128128
locale-dependent strings like "Prague", "Praha", "Прага", and "布拉格".
@@ -571,7 +571,7 @@ <h2 id="abbreviations">Time zone abbreviations</h2>
571571
locations while uninhabited.
572572
The leading '<code>-</code>' is a flag that the <abbr>UT</abbr> offset is in
573573
some sense undefined; this notation is derived
574-
from <a href="https://tools.ietf.org/html/rfc3339">Internet
574+
from <a href="https://datatracker.ietf.org/doc/html/rfc3339">Internet
575575
<abbr title="Request For Comments">RFC</abbr> 3339</a>.
576576
</li>
577577
</ul>
@@ -624,7 +624,7 @@ <h2 id="accuracy">Accuracy of the <code><abbr>tz</abbr></code> database</h2>
624624
should be observed.
625625
In her 2015 book
626626
<cite><a
627-
href="http://www.hup.harvard.edu/catalog.php?isbn=9780674286146">The
627+
href="https://www.hup.harvard.edu/catalog.php?isbn=9780674286146">The
628628
Global Transformation of Time, 1870&ndash;1950</a></cite>,
629629
Vanessa Ogle writes
630630
"Outside of Europe and North America there was no system of time
@@ -810,7 +810,7 @@ <h2 id="accuracy">Accuracy of the <code><abbr>tz</abbr></code> database</h2>
810810
See: Stephenson FR, Morrison LV, Hohenkerk CY.
811811
<a href="https://dx.doi.org/10.1098/rspa.2016.0404">Measurement of
812812
the Earth's rotation: 720 BC to AD 2015</a>.
813-
<cite>Proc Royal Soc A</cite>. 2016 Dec 7;472:20160404.
813+
<cite>Proc Royal Soc A</cite>. 2016;472:20160404.
814814
Also see: Espenak F. <a
815815
href="https://eclipse.gsfc.nasa.gov/SEhelp/uncertainty2004.html">Uncertainty
816816
in Delta T (ΔT)</a>.
@@ -1036,7 +1036,7 @@ <h3 id="POSIX-extensions">Extensions to POSIX in the
10361036
and numeric data as described <a href="#POSIX">above</a>.
10371037
The file's format is <dfn><abbr>TZif</abbr></dfn>,
10381038
a timezone information format that contains binary data; see
1039-
<a href="https://tools.ietf.org/html/8536">Internet
1039+
<a href="https://datatracker.ietf.org/doc/html/8536">Internet
10401040
<abbr>RFC</abbr> 8536</a>.
10411041
The daylight saving time rules to be used for a
10421042
particular timezone are encoded in the
@@ -1064,11 +1064,12 @@ <h3 id="POSIX-extensions">Extensions to POSIX in the
10641064
</li>
10651065
<li>
10661066
The code supports platforms with a <abbr>UT</abbr> offset member
1067-
in <code>struct tm</code>, e.g., <code>tm_gmtoff</code>.
1068-
</li>
1069-
<li>
1070-
The code supports platforms with a time zone abbreviation member in
1071-
<code>struct tm</code>, e.g., <code>tm_zone</code>.
1067+
in <code>struct tm</code>, e.g., <code>tm_gmtoff</code>,
1068+
or with a time zone abbreviation member in
1069+
<code>struct tm</code>, e.g., <code>tm_zone</code>. As noted
1070+
in <a href="https://austingroupbugs.net/view.php?id=1533">Austin
1071+
Group defect 1533</a>, a future version of POSIX is planned to
1072+
require <code>tm_gmtoff</code> and <code>tm_zone</code>.
10721073
</li>
10731074
<li>
10741075
Functions <code>tzalloc</code>, <code>tzfree</code>,
@@ -1129,7 +1130,8 @@ <h3 id="vestigial">POSIX features no longer needed</h3>
11291130
<abbr>API</abbr>s.
11301131
Although it can still be used in arguments to
11311132
<code>mktime</code> to disambiguate timestamps near
1132-
a <abbr>DST</abbr> transition when the clock jumps back, this
1133+
a <abbr>DST</abbr> transition when the clock jumps back on
1134+
platforms lacking <code>tm_gmtoff</code>, this
11331135
disambiguation does not work when standard time itself jumps back,
11341136
which can occur when a location changes to a time zone with a
11351137
lesser <abbr>UT</abbr> offset.
@@ -1277,7 +1279,7 @@ <h2 id="leapsec">Leap seconds</h2>
12771279
<a href="tz-link.html#precision">Precision timekeeping</a>,
12781280
and this package by default installs a <samp>leapseconds</samp> file
12791281
commonly used by
1280-
<a href="http://www.ntp.org"><abbr title="Network Time Protocol">NTP</abbr></a>
1282+
<a href="https://www.ntp.org"><abbr title="Network Time Protocol">NTP</abbr></a>
12811283
software that adjusts the kernel clock.
12821284
However, kernel-clock twiddling approximates UTC only roughly,
12831285
and systems needing more-precise UTC can use this package's leap

tzdata/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022b
1+
2022c

tzdata/ziguard.awk

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,13 @@ $1 == "#PACKRATLIST" && $2 == PACKRATLIST {
9191
/^Zone/ { zone = $2 }
9292

9393
DATAFORM != "main" {
94-
in_comment = /^#/
94+
in_comment = $0 ~ /^#/
9595
uncomment = comment_out = 0
9696

9797
# If this line should differ due to Czechoslovakia using negative SAVE values,
9898
# uncomment the desired version and comment out the undesired one.
99-
if (zone == "Europe/Prague" && /^#?[\t ]+[01]:00[\t ]/ && /1947 Feb 23/) {
99+
if (zone == "Europe/Prague" && $0 ~ /^#?[\t ]+[01]:00[\t ]/ \
100+
&& $0 ~ /1947 Feb 23/) {
100101
if (($(in_comment + 2) != "-") == (DATAFORM != "rearguard")) {
101102
uncomment = in_comment
102103
} else {
@@ -106,9 +107,9 @@ DATAFORM != "main" {
106107

107108
# If this line should differ due to Ireland using negative SAVE values,
108109
# uncomment the desired version and comment out the undesired one.
109-
Rule_Eire = /^#?Rule[\t ]+Eire[\t ]/
110+
Rule_Eire = $0 ~ /^#?Rule[\t ]+Eire[\t ]/
110111
Zone_Dublin_post_1968 \
111-
= (zone == "Europe/Dublin" && /^#?[\t ]+[01]:00[\t ]/ \
112+
= (zone == "Europe/Dublin" && $0 ~ /^#?[\t ]+[01]:00[\t ]/ \
112113
&& (!$(in_comment + 4) || 1968 < $(in_comment + 4)))
113114
if (Rule_Eire || Zone_Dublin_post_1968) {
114115
if ((Rule_Eire \
@@ -122,9 +123,9 @@ DATAFORM != "main" {
122123

123124
# If this line should differ due to Namibia using negative SAVE values,
124125
# uncomment the desired version and comment out the undesired one.
125-
Rule_Namibia = /^#?Rule[\t ]+Namibia[\t ]/
126+
Rule_Namibia = $0 ~ /^#?Rule[\t ]+Namibia[\t ]/
126127
Zone_using_Namibia_rule \
127-
= (zone == "Africa/Windhoek" && /^#?[\t ]+[12]:00[\t ]/ \
128+
= (zone == "Africa/Windhoek" && $0 ~ /^#?[\t ]+[12]:00[\t ]/ \
128129
&& ($(in_comment + 2) == "Namibia" \
129130
|| ($(in_comment + 2) == "-" && $(in_comment + 3) == "CAT" \
130131
&& ((1994 <= $(in_comment + 4) && $(in_comment + 4) <= 2017) \
@@ -142,8 +143,8 @@ DATAFORM != "main" {
142143

143144
# If this line should differ due to Portugal benefiting from %z if supported,
144145
# uncomment the desired version and comment out the undesired one.
145-
if (/^#?[\t ]+-[12]:00[\t ]+Port[\t ]+[%+-]/) {
146-
if (/%z/ == (DATAFORM == "vanguard")) {
146+
if ($0 ~ /^#?[\t ]+-[12]:00[\t ]+Port[\t ]+[%+-]/) {
147+
if (($0 ~ /%z/) == (DATAFORM == "vanguard")) {
147148
uncomment = in_comment
148149
} else {
149150
comment_out = !in_comment
@@ -164,8 +165,8 @@ DATAFORM != "main" {
164165
sub(/-00CHANGE-TO-%z/, "-00")
165166
sub(/[-+][^\t ]+CHANGE-TO-/, "")
166167
} else {
167-
if (/^[^#]*%z/) {
168-
stdoff_column = 2 * /^Zone/ + 1
168+
if ($0 ~ /^[^#]*%z/) {
169+
stdoff_column = 2 * ($0 ~ /^Zone/) + 1
169170
rules_column = stdoff_column + 1
170171
stdoff = get_minutes($stdoff_column)
171172
rules = $rules_column
@@ -184,9 +185,9 @@ DATAFORM != "main" {
184185
dstoff = 20
185186
} else if (((rules == "Cook" || rules == "LH") && NF == 3) \
186187
|| (rules == "Uruguay" \
187-
&& /[\t ](1942 Dec 14|1960|1970|1974 Dec 22)$/)) {
188+
&& $0 ~ /[\t ](1942 Dec 14|1960|1970|1974 Dec 22)$/)) {
188189
dstoff = 30
189-
} else if (rules == "Uruguay" && /[\t ]1974 Mar 10$/) {
190+
} else if (rules == "Uruguay" && $0 ~ /[\t ]1974 Mar 10$/) {
190191
dstoff = 90
191192
} else {
192193
dstoff = 60
@@ -222,7 +223,7 @@ DATAFORM != "main" {
222223
stdoff_subst[1] = rounded_stdoff
223224
}
224225
} else if (stdoff_subst[0]) {
225-
stdoff_column = 2 * /^Zone/ + 1
226+
stdoff_column = 2 * ($0 ~ /^Zone/) + 1
226227
stdoff_column_val = $stdoff_column
227228
if (stdoff_column_val == stdoff_subst[0]) {
228229
sub(stdoff_subst[0], stdoff_subst[1])
@@ -233,7 +234,7 @@ DATAFORM != "main" {
233234

234235
# In rearguard form, change the Japan rule line with "Sat>=8 25:00"
235236
# to "Sun>=9 1:00", to cater to zic before 2007 and to older Java.
236-
if (/^Rule/ && $2 == "Japan") {
237+
if ($0 ~ /^Rule/ && $2 == "Japan") {
237238
if (DATAFORM == "rearguard") {
238239
if ($7 == "Sat>=8" && $8 == "25:00") {
239240
sub(/Sat>=8/, "Sun>=9")
@@ -250,7 +251,7 @@ DATAFORM != "main" {
250251
# In rearguard form, change the Morocco lines with negative SAVE values
251252
# to use positive SAVE values.
252253
if ($2 == "Morocco") {
253-
if (/^Rule/) {
254+
if ($0 ~ /^Rule/) {
254255
if ($4 ~ /^201[78]$/ && $6 == "Oct") {
255256
if (DATAFORM == "rearguard") {
256257
sub(/\t2018\t/, "\t2017\t")
@@ -290,8 +291,10 @@ DATAFORM != "main" {
290291
/^Zone/ {
291292
packrat_ignored = FILENAME == PACKRATDATA && PACKRATLIST && !packratlist[$2];
292293
}
293-
packrat_ignored && !/^Rule/ {
294-
sub(/^/, "#")
294+
{
295+
if (packrat_ignored && $0 !~ /^Rule/) {
296+
sub(/^/, "#")
297+
}
295298
}
296299

297300
# If a Link line is followed by a Link or Zone line for the same data, comment

tzdata/zone1970.tab

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,3 +351,27 @@ VN +1045+10640 Asia/Ho_Chi_Minh Vietnam (south)
351351
VU -1740+16825 Pacific/Efate
352352
WS -1350-17144 Pacific/Apia
353353
ZA,LS,SZ -2615+02800 Africa/Johannesburg
354+
#
355+
# The next section contains experimental tab-separated comments for
356+
# use by user agents like tzselect that identify continents and oceans.
357+
#
358+
# For example, the comment "#@AQ<tab>Antarctica/" means the country code
359+
# AQ is in the continent Antarctica regardless of the Zone name,
360+
# so Pacific/Auckland should be listed under Antarctica as well as
361+
# under the Pacific because its line's country codes include AQ.
362+
#
363+
# If more than one country code is affected each is listed separated
364+
# by commas, e.g., #@IS,SH<tab>Atlantic/". If a country code is in
365+
# more than one continent or ocean, each is listed separated by
366+
# commas, e.g., the second column of "#@CY,TR<tab>Asia/,Europe/".
367+
#
368+
# These experimental comments are present only for country codes where
369+
# the continent or ocean is not already obvious from the Zone name.
370+
# For example, there is no such comment for RU since it already
371+
# corresponds to Zone names starting with both "Europe/" and "Asia/".
372+
#
373+
#@AQ Antarctica/
374+
#@IS,SH Atlantic/
375+
#@CY,TR Asia/,Europe/
376+
#@SJ Arctic/
377+
#@CC,CX,KM,MG,YT Indian/

tzdata/zoneinfo2tdf.pl

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)