Skip to content

Commit 9e6c1b4

Browse files
author
GitHub Actions
committed
Update tzdata and zoneinfo to version 2017c.
1 parent 4455100 commit 9e6c1b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2319
-1314
lines changed

tzdata/CONTRIBUTING

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,26 @@ change timekeeping rules erratically and sometimes with little
55
warning, the data entries do not cover all of civil time before
66
1970, and undoubtedly errors remain in the code and data. Feel
77
free to fill gaps or fix mistakes, and please email improvements
8-
to [email protected] for use in the future.
8+
to [email protected] for use in the future. In your email, please give
9+
reliable sources that reviewers can check.
10+
11+
-----
12+
13+
Developers can contribute technical changes to the source code and
14+
data as follows.
915

1016
To email small changes, please run a POSIX shell command like
1117
'diff -u old/europe new/europe >myfix.patch', and attach
1218
myfix.patch to the email.
1319

14-
For more-elaborate changes, please read the Theory file and browse
15-
the mailing list archives <http://mm.icann.org/pipermail/tz/> for
16-
examples of patches that tend to work well. Ideally, additions to
20+
For more-elaborate changes, please read the theory.html file and browse
21+
the mailing list archives <https://mm.icann.org/pipermail/tz/> for
22+
examples of patches that tend to work well. Additions to
1723
data should contain commentary citing reliable sources as
18-
justification.
24+
justification. Citations should use https: URLs if available.
1925

2026
Please submit changes against either the latest release in
21-
<ftp://ftp.iana.org/tz/> or the master branch of the development
27+
<https://www.iana.org/time-zones> or the master branch of the development
2228
repository. If you use Git the following workflow may be helpful:
2329

2430
* Copy the development repository.

tzdata/LICENSE

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
With a few exceptions, all files in the tz code and data (including
2-
this one) are in the public domain. The exceptions are date.c,
3-
newstrftime.3, and strftime.c, which contain material derived from BSD
4-
and which use the BSD 3-clause license.
1+
Unless specified below, all files in the tz code and data (including
2+
this LICENSE file) are in the public domain.
3+
4+
If the files date.c, newstrftime.3, and strftime.c are present, they
5+
contain material derived from BSD and use the BSD 3-clause license.

tzdata/Makefile

Lines changed: 171 additions & 82 deletions
Large diffs are not rendered by default.

tzdata/NEWS

Lines changed: 176 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,169 @@
11
News for the tz database
22

3+
Release 2017c - 2017-10-20 14:49:34 -0700
4+
5+
Briefly:
6+
Northern Cyprus switches from +03 to +02/+03 on 2017-10-29.
7+
Fiji ends DST 2018-01-14, not 2018-01-21.
8+
Namibia switches from +01/+02 to +02 on 2018-04-01.
9+
Sudan switches from +03 to +02 on 2017-11-01.
10+
Tonga likely switches from +13/+14 to +13 on 2017-11-05.
11+
Turks & Caicos switches from -04 to -05/-04 on 2018-11-04.
12+
A new file tzdata.zi now holds a small text copy of all data.
13+
The zic input format has been regularized slightly.
14+
15+
Changes to future time stamps
16+
17+
Northern Cyprus has decided to resume EU rules starting
18+
2017-10-29, thus reinstituting winter time.
19+
20+
Fiji ends DST 2018-01-14 instead of the 2018-01-21 previously
21+
predicted. (Thanks to Dominic Fok.) Adjust future predictions
22+
accordingly.
23+
24+
Namibia will switch from +01 with DST to +02 all year on
25+
2017-09-03 at 02:00. This affects UT offsets starting 2018-04-01
26+
at 02:00. (Thanks to Steffen Thorsen.)
27+
28+
Sudan will switch from +03 to +02 on 2017-11-01. (Thanks to Ahmed
29+
Atyya and Yahia Abdalla.) South Sudan is not switching, so
30+
Africa/Juba is no longer a link to Africa/Khartoum.
31+
32+
Tonga has likely ended its experiment with DST, and will not
33+
adjust its clocks on 2017-11-05. Although Tonga has not announced
34+
whether it will continue to observe DST, the IATA is assuming that
35+
it will not. (Thanks to David Wade.)
36+
37+
Turks & Caicos will switch from -04 all year to -05 with US DST on
38+
2018-03-11 at 03:00. This affects UT offsets starting 2018-11-04
39+
at 02:00. (Thanks to Steffen Thorsen.)
40+
41+
Changes to past time stamps
42+
43+
Namibia switched from +02 to +01 on 1994-03-21, not 1994-04-03.
44+
(Thanks to Arthur David Olson.)
45+
46+
Detroit did not observe DST in 1967.
47+
48+
Use railway time for Asia/Kolkata before 1941, by switching to
49+
Madras local time (UT +052110) in 1870, then to IST (UT +0530) in
50+
1906. Also, treat 1941-2's +0630 as DST, like 1942-5.
51+
52+
Europe/Dublin's 1946 and 1947 fallback transitions occurred at
53+
02:00 standard time, not 02:00 DST. (Thanks to Michael Deckers.)
54+
55+
Pacific/Apia and Pacific/Pago_Pago switched from Antipodean to
56+
American time in 1892, not 1879. (Thanks to Michael Deckers.)
57+
58+
Adjust the 1867 transition in Alaska to better reflect the
59+
historical record, by changing it to occur on 1867-10-18 at 15:30
60+
Sitka time rather than at the start of 1867-10-17 local time.
61+
Although strictly speaking this is accurate only for Sitka,
62+
the rest of Alaska's blanks need to be filled in somehow.
63+
64+
Fix off-by-one errors in UT offsets for Adak and Nome before 1867.
65+
(Thanks to Michael Deckers.)
66+
67+
Add 7 s to the UT offset in Asia/Yangon before 1920.
68+
69+
Changes to zone names
70+
71+
Remove Canada/East-Saskatchewan from the 'backward' file, as it
72+
exceeded the 14-character limit and was an unused misnomer anyway.
73+
74+
Changes to build procedure
75+
76+
To support applications that prefer to read time zone data in text
77+
form, two zic input files tzdata.zi and leapseconds are now
78+
installed by default. The commands 'zic tzdata.zi' and 'zic -L
79+
leapseconds tzdata.zi' can reproduce the tzdata binary files
80+
without and with leap seconds, respectively. To prevent these two
81+
new files from being installed, use 'make TZDATA_TEXT=', and to
82+
suppress leap seconds from the tzdata text installation, use 'make
83+
TZDATA_TEXT=tzdata.zi'.
84+
85+
'make BACKWARD=' now suppresses backward-compatibility names
86+
like 'US/Pacific' that are defined in the 'backward' and
87+
'pacificnew' files.
88+
89+
'make check' now works on systems that lack a UTF-8 locale,
90+
or that lack the nsgmls program. Set UTF8_LOCALE to configure
91+
the name of a UTF-8 locale, if you have one.
92+
93+
Y2K runtime checks are no longer enabled by default. Add
94+
-DDEPRECATE_TWO_DIGIT_YEARS to CFLAGS to enable them, instead of
95+
adding -DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU
96+
to disable them. (New name suggested by Brian Inglis.)
97+
98+
The build procedure for zdump now works on AIX 7.1.
99+
(Problem reported by Kees Dekker.)
100+
101+
Changes to code
102+
103+
zic and the reference runtime now reject multiple leap seconds
104+
within 28 days of each other, or leap seconds before the Epoch.
105+
As a result, support for double leap seconds, which was
106+
obsolescent and undocumented, has been removed. Double leap
107+
seconds were an error in the C89 standard; they have never existed
108+
in civil timekeeping. (Thanks to Robert Elz and Bradley White for
109+
noticing glitches in the code that uncovered this problem.)
110+
111+
zic now warns about use of the obsolescent and undocumented -y
112+
option, and about use of the obsolescent TYPE field of Rule lines.
113+
114+
zic now allows unambiguous abbreviations like "Sa" and "Su" for
115+
weekdays; formerly it rejected them due to a bug. Conversely, zic
116+
no longer considers non-prefixes to be abbreviations; for example,
117+
it no longer accepts "lF" as an abbreviation for "lastFriday".
118+
Also, zic warns about the undocumented usage with a "last-"
119+
prefix, e.g., "last-Fri".
120+
121+
Similarly, zic now accepts the unambiguous abbreviation "L" for
122+
"Link" in ordinary context and for "Leap" in leap-second context.
123+
Conversely, zic no longer accepts non-prefixes such as "La" as
124+
abbreviations for words like "Leap".
125+
126+
zic no longer accepts leap second lines in ordinary input, or
127+
ordinary lines in leap second input. Formerly, zic sometimes
128+
warned about this undocumented usage and handled it incorrectly.
129+
130+
The new macro HAVE_TZNAME governs whether the tzname external
131+
variable is exported, instead of USG_COMPAT. USG_COMPAT now
132+
governs only the external variables "timezone" and "daylight".
133+
This change is needed because the three variables are not in the
134+
same category: although POSIX requires tzname, it specifies the
135+
other two variables as optional. Also, USG_COMPAT is now 1 or 0:
136+
if not defined, the code attempts to guess it from other macros.
137+
138+
localtime.c and difftime.c no longer require stdio.h, and .c files
139+
other than zic.c no longer require sys/wait.h.
140+
141+
zdump.c no longer assumes snprintf. (Reported by Jonathan Leffler.)
142+
143+
Calculation of time_t extrema works around a bug in GCC 4.8.4
144+
(Reported by Stan Shebs and Joseph Myers.)
145+
146+
zic.c no longer mistranslates formats of line numbers in non-English
147+
locales. (Problem reported by Benno Schulenberg.)
148+
149+
Several minor changes have been made to the code to make it a
150+
bit easier to port to MS-Windows and Solaris. (Thanks to Kees
151+
Dekker for reporting the problems.)
152+
153+
Changes to documentation and commentary
154+
155+
The two new files 'theory.html' and 'calendars' contain the
156+
contents of the removed file 'Theory'. The goal is to document
157+
tzdb theory more accessibly.
158+
159+
The zic man page now documents abbreviation rules.
160+
161+
tz-link.htm now covers how to apply tzdata changes to clients.
162+
(Thanks to Jorge Fábregas for the AIX link.) It also mentions MySQL.
163+
164+
The leap-seconds.list URL has been updated to something that is
165+
more reliable for tzdb. (Thanks to Tim Parenti and Brian Inglis.)
166+
3167
Release 2017b - 2017-03-17 07:30:38 -0700
4168

5169
Briefly: Haiti has resumed DST.
@@ -15,6 +179,16 @@ Release 2017b - 2017-03-17 07:30:38 -0700
15179
Use "MMT" to abbreviate Liberia's time zone before 1972, as "-004430"
16180
is one byte over the POSIX limit. (Problem reported by Derick Rethans.)
17181

182+
Changes to code
183+
184+
The reference localtime implementation now falls back on the
185+
current US daylight-saving transition rules rather than the
186+
1987-2006 rules. This fallback occurs only when (1) the TZ
187+
environment variable's value has a name like "AST4ADT" that asks
188+
for daylight saving time but does not specify the rules, (2) there
189+
is no file by that name, and (3) the TZDEFRULES file cannot be
190+
loaded. (Thanks to Tom Lane.)
191+
18192

19193
Release 2017a - 2017-02-28 00:05:36 -0800
20194

@@ -1981,7 +2155,7 @@ Release 2013e - 2013-09-19 23:50:04 -0700
19812155

19822156
The 'leapseconds' file is now generated automatically from a
19832157
new file 'leap-seconds.list', which is a copy of
1984-
<ftp://time.nist.gov/pub/leap-seconds.list>.
2158+
<ftp://ftp.nist.gov/pub/time/leap-seconds.list>
19852159
A new source file 'leapseconds.awk' implements this.
19862160
The goal is simplification of the future maintenance of 'leapseconds'.
19872161

@@ -2187,7 +2361,7 @@ Release 2013a - 2013-02-27 09:20:35 -0800
21872361

21882362
Many changes affect historical timestamps before 1940.
21892363
These were deduced from: Milne J. Civil time. Geogr J. 1899
2190-
Feb;13(2):173-94 <http://www.jstor.org/stable/1774359>.
2364+
Feb;13(2):173-94 <https://www.jstor.org/stable/1774359>.
21912365

21922366
Changes affecting the code:
21932367

0 commit comments

Comments
 (0)