Skip to content

Commit

Permalink
Squashed 'tz/' changes from d2c79c4bc..e6150f292
Browse files Browse the repository at this point in the history
95ecc37d2 Release 2022a
d90452ece * NEWS: Add 2022a "Briefly".
44b73f770 * NEWS: Coalesce Palestine entries.
049044d77 * zdump.c: Fix date typo in comment.
e8681e760 Adjust Chile LMT; expand 1946/1947 commentary
0caefb646 Revert "Chile’s Magallanes was like Santiago in 1946/7"
22a2dca72 URL housekeeping
6d6a21f59 Chile’s Magallanes was like Santiago in 1946/7
f4b156691 Palestine springs forward a day later
cac76bf92 Fix white space.
318759658 Add URLs to Morocco commentary (thanks to Milamber)
6ff7b3502 Fix French typo
88d2c3909 Fix Lubumbashi between 1897 and 1929
7f60edb1d * private.h (UNINIT_TRAP): Add comment.
db9347fbb Fix processing of TZif truncation
df4699ddf Add comments on Russia in 1981 (thanks to Alois Treindl)
4117b20d0 Simplify Ukraine metadata
93dcac0c6 Ukraine’s 1992/1996 DST changes 02:00s not 01:00u
b74f54452 dumptime’s argument is always nonnull now
3a11c9cc2 I18nize zdump a bit better
a12823400 Improve doc for some source files
0b8077257 Simplify recent zdump port
80096e016 zdump ports better to odd C11 platforms
b6f92f762 zdump -v reports localtime+gmtime failures better
e3c58df90 * Makefile (AWK): Warn re mawk 1.3.3 (thanks to Jonathan Ben Avraham)
9c8cb5d76 No leap second on 2022-06-30
cec7d9e2e Improve rearguard port of post-2087 Morocco
01eeac6b0 zic: omit parens that the C standard doesn’t allow
6cfaa796e Fix "el ds" typo in man pages
aa9c4662f * CONTRIBUTING: Move pull request insns to start.
4292b9320 Convert CONTRIBUTING back to plain text
b0c24fad4 Rename CONTRIBUTING.md back to CONTRIBUTING
7a200f2b3 Fix Y2242 bug in tzdb tarball generation
5f6467141 Support busybox awk
8407d785a Port zic to Solaris 10 automounts
b10ff6d60 Port tzselect to Solaris 10 /bin/sh
e4a46da99 Simplify tzselect by omitting old Bash workaround
ee44afb40 Distribute tarballs in ustar rather than gnu form
68b99887d Remove duplicate Trinidad and Tobago comment
f6c9f51fa Fix minor formatting inconsistencies
3fdd3c482 Rename CONTRIBUTING to CONTRIBUTING.md
b0de1570e Switch to Markdown format
228a93f75 Remove bad backzone link for US Virgin Is
8b409e22d Be more generous when dealing with v1 data
e5a4add00 Fix uninitialized variable bug
1a4a7eab6 spelling fix
0b13c6b41 Update Palestine commentary
59467e337 Improve Palestine predictions for 2025 and later
b102002e5 Release 2021e
d86edaf12 Palestine falls back October 29 01:00.
8da2e33e0 Palestine falls back October 28 24:00
4de3d7f24 Release 2021d
951b4f301 * NEWS: Reformat to fit in fewer columns.
5f06f9a31 zic -r now uses -00 for unspecified timestamps
f8c660ce6 Simplify zic writezone slightly
bdeb83438 Document that -00 means local time is unspecified
f74940d96 Fiji suspends DST for the 2021/2022 season
0bf5a761f Fix zic.8 typos
868ba546b Correct spelling of "Treindl" (thanks to Steffen Nurpmeso)
e5d72c0f9 Clarify comments re Rome in April 1944

git-subtree-dir: tz
git-subtree-split: e6150f292f19c33ae136f70464d6075c41a1a5f3
  • Loading branch information
stub42 committed Mar 20, 2022
1 parent 8e18f04 commit 9e15fad
Show file tree
Hide file tree
Showing 28 changed files with 511 additions and 211 deletions.
66 changes: 34 additions & 32 deletions CONTRIBUTING
Original file line number Diff line number Diff line change
@@ -1,53 +1,58 @@
Contributing to the tz code and data
# Contributing to the tz code and data

Please do not create issues or pull requests on GitHub, as the
proper procedure for proposing and distributing patches is via
email as described below.

The time zone database is by no means authoritative: governments
change timekeeping rules erratically and sometimes with little
warning, the data entries do not cover all of civil time before
1970, and undoubtedly errors remain in the code and data. Feel
free to fill gaps or fix mistakes, and please email improvements
to tz@iana.org for use in the future. In your email, please give
to <tz@iana.org> for use in the future. In your email, please give
reliable sources that reviewers can check.

-----

Developers can contribute technical changes to the source code and
data as follows.
## Contributing technical changes

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

For more-elaborate or possibly-controversial changes,
such as renaming, adding or removing zones, please read
<https://www.iana.org/time-zones/repository/theory.html> or the file
theory.html. It is also good to browse the mailing list archives
"Theory and pragmatics of the tz code and data"
<https://www.iana.org/time-zones/repository/theory.html>.
It is also good to browse the mailing list archives
<https://mm.icann.org/pipermail/tz/> for examples of patches that tend
to work well. Additions to data should contain commentary citing
reliable sources as justification. Citations should use https: URLs
reliable sources as justification. Citations should use "https:" URLs
if available.

For changes that fix sensitive security-related bugs, please see the
file SECURITY.
distribution's 'SECURITY' file.

Please submit changes against either the latest release in
Please submit changes against either the latest release
<https://www.iana.org/time-zones> or the main branch of the development
repository. The latter is preferred. If you use Git the following
workflow may be helpful:
repository. The latter is preferred.

## Sample Git workflow for developing contributions

If you use Git the following workflow may be helpful:

* Copy the development repository.

git clone https://github.com/eggert/tz.git
cd tz
git clone https://github.com/eggert/tz.git
cd tz

* Get current with the main branch.

git checkout main
git pull
git checkout main
git pull

* Switch to a new branch for the changes. Choose a different
branch name for each change set.

git checkout -b mybranch
git checkout -b mybranch

* Sleuth by using 'git blame'. For example, when fixing data for
Africa/Sao_Tome, if the command 'git blame africa' outputs a line
Expand All @@ -60,36 +65,33 @@ workflow may be helpful:

* Debug the changes, e.g.:

make check
make install
./zdump -v America/Los_Angeles
make check
make install
./zdump -v America/Los_Angeles

* For each separable change, commit it in the new branch, e.g.:

git add northamerica
git commit
git add northamerica
git commit

See recent 'git log' output for the commit-message style.

* Create patch files 0001-*, 0002-*, ...
* Create patch files 0001-..., 0002-..., ...

git format-patch main
git format-patch main

* After reviewing the patch files, send the patches to tz@iana.org
* After reviewing the patch files, send the patches to <tz@iana.org>
for others to review.

git send-email main
git send-email main

For an archived example of such an email, see
"[PROPOSED] Fix off-by-1 error for Jamaica and T&C before 1913"
<https://mm.icann.org/pipermail/tz/2018-February/026122.html>.

* Start anew by getting current with the main branch again
(the second step above).

Please do not create issues or pull requests on GitHub, as the
proper procedure for proposing and distributing patches is via
email as illustrated above.

-----

This file is in the public domain.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,10 @@ ZFLAGS=
ZIC_INSTALL= $(ZIC) -d '$(DESTDIR)$(TZDIR)' $(LEAPSECONDS)

# The name of a Posix-compliant 'awk' on your system.
# Older 'mawk' versions, such as the 'mawk' in Ubuntu 16.04, might dump core;
# on Ubuntu you can work around this with
# AWK= gawk
# mawk 1.3.3 and Solaris 10 /usr/bin/awk do not work.
# Also, it is better (though not essential) if 'awk' supports UTF-8,
# and unfortunately mawk and busybox awk do not support UTF-8.
# Try AWK=gawk or AWK=nawk if your awk has the abovementioned problems.
AWK= awk

# The full path name of a Posix-compliant shell, preferably one that supports
Expand Down Expand Up @@ -466,7 +467,9 @@ OK_LINE= '^'$(OK_CHAR)'*$$'
# Flags to give 'tar' when making a distribution.
# Try to use flags appropriate for GNU tar.
GNUTARFLAGS= --numeric-owner --owner=0 --group=0 --mode=go+u,go-w --sort=name
GNUTARFLAGS= --format=pax --pax-option='delete=atime,delete=ctime' \
--numeric-owner --owner=0 --group=0 \
--mode=go+u,go-w --sort=name
TARFLAGS= `if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; \
then echo $(GNUTARFLAGS); \
else :; \
Expand Down Expand Up @@ -742,7 +745,7 @@ date: $(DATEOBJS)
tzselect: tzselect.ksh version
VERSION=`cat version` && sed \
-e 's|#!/bin/bash|#!$(KSHELL)|g' \
-e 's|AWK=[^}]*|AWK=$(AWK)|g' \
-e 's|AWK=[^}]*|AWK='\''$(AWK)'\''|g' \
-e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \
-e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \
-e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
Expand Down
91 changes: 89 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,92 @@
News for the tz database

Release 2022a - 2022-03-15 23:02:01 -0700

Briefly:
Palestine will spring forward on 2022-03-27, not -03-26.
zdump -v now outputs better failure indications.
Bug fixes for code that reads corrupted TZif data.

Changes to future timestamps

Palestine will spring forward on 2022-03-27, not 2022-03-26.
(Thanks to Heba Hamad.) Predict future transitions for first
Sunday >= March 25. Additionally, predict fallbacks to be the first
Friday on or after October 23, not October's last Friday, to be more
consistent with recent practice. The first differing fallback
prediction is on 2025-10-24, not 2025-10-31.

Changes to past timestamps

From 1992 through spring 1996, Ukraine's DST transitions were at
02:00 standard time, not at 01:00 UTC. (Thanks to Alois Treindl.)

Chile's Santiago Mean Time and its LMT precursor have been adjusted
eastward by 1 second to align with past and present law.

Changes to commentary

Add several references for Chile's 1946/1947 transitions, some of
which only affected portions of the country.

Changes to code

Fix bug when mktime gets confused by truncated TZif files with
unspecified local time. (Problem reported by Almaz Mingaleev.)

Fix bug when 32-bit time_t code reads malformed 64-bit TZif data.
(Problem reported by Christos Zoulas.)

When reading a version 2 or later TZif file, the TZif reader now
validates the version 1 header and data block only enough to skip
over them, as recommended by RFC 8536 section 4. Also, the TZif
reader no longer mistakenly attempts to parse a version 1 TZIf
file header as a TZ string.

zdump -v now outputs "(localtime failed)" and "(gmtime failed)"
when local time and UT cannot be determined for a timestamp.

Changes to build procedure

Distribution tarballs now use standard POSIX.1-1988 ustar format
instead of GNU format. Although the formats are almost identical
for these tarballs, ustar headers' magic fields contain "ustar"
instead of "ustar ", and their version fields contain "00" instead
of " ". The two formats are planned to diverge more significantly
for tzdb releases after 2242-03-16 12:56:31 UTC, when the ustar
format becomes obsolete and the tarballs switch to pax format, an
extension of ustar. For details about these formats, please see
"pax - portable archive interchange", IEEE Std 1003.1-2017,
<https://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html#tag_20_92_13>.


Release 2021e - 2021-10-21 18:41:00 -0700

Changes to future timestamps

Palestine will fall back 10-29 (not 10-30) at 01:00.
(Thanks to P Chan and Heba Hemad.)


Release 2021d - 2021-10-15 13:48:18 -0700

Briefly:
Fiji suspends DST for the 2021/2022 season.
'zic -r' marks unspecified timestamps with "-00".

Changes to future timestamps

Fiji will suspend observance of DST for the 2021/2022 season.
Assume for now that it will return next year. (Thanks to Jashneel
Kumar and P Chan.)

Changes to code

'zic -r' now uses "-00" time zone abbreviations for intervals
with UT offsets that are unspecified due to -r truncation.
This implements a change in draft Internet RFC 8536bis.


Release 2021c - 2021-10-01 14:21:49 -0700

Briefly:
Expand Down Expand Up @@ -546,13 +633,13 @@ Release 2019c - 2019-09-11 08:59:48 -0700
probably wrong.)

Fix several errors in pre-1970 transitions in Perry County, IN.
(Thanks to Alois Triendl for pointing out the 1967/9 errors.)
(Thanks to Alois Treindl for pointing out the 1967/9 errors.)

Edmonton did not observe DST in 1967 or 1969. In 1946 Vancouver
ended DST on 09-29 not 10-13, and Vienna ended DST on 10-07 not
10-06. In 1945 Königsberg (now Kaliningrad) switched from +01/+02
to +02/+03 on 04-10 not 01-01, and its +02/+03 is abbreviated
EET/EEST, not CET/CEST. (Thanks to Alois Triendl.) In 1946
EET/EEST, not CET/CEST. (Thanks to Alois Treindl.) In 1946
Königsberg switched to +03 on 04-07 not 01-01.

In 1946 Louisville switched from CST to CDT on 04-28 at 00:01, not
Expand Down
4 changes: 4 additions & 0 deletions africa
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,10 @@ Zone Indian/Mauritius 3:50:00 - LMT 1907 # Port Louis
# (car (cdr (cdr a))) (calendar-month-name (car a) t) (car (cdr a))
# (car (cdr (cdr b))) (calendar-month-name (car b) t) (car (cdr b)))))
# (setq islamic-year (+ 1 islamic-year))))
#
# From Milamber (2021-03-31, 2022-03-10), confirming these predictions:
# https://www.mmsp.gov.ma/fr/actualites.aspx?id=2076
# https://www.ecoactu.ma/horaires-administration-ramadan-gmtheure-gmt-a-partir-de-dimanche-27-mars/

# Rule NAME FROM TO - IN ON AT SAVE LETTER/S
Rule Morocco 1939 only - Sep 12 0:00 1:00 -
Expand Down
26 changes: 19 additions & 7 deletions asia
Original file line number Diff line number Diff line change
Expand Up @@ -3386,11 +3386,6 @@ Zone Asia/Karachi 4:28:12 - LMT 1907
# shall [end] on Oct 24th 2020 at 01:00AM by delaying the clock by 60 minutes.
# http://www.palestinecabinet.gov.ps/portal/Meeting/Details/51584

# From Tim Parenti (2020-10-20):
# Predict future fall transitions at 01:00 on the Saturday preceding October's
# last Sunday (i.e., Sat>=24). This is consistent with our predictions since
# 2016, although the time of the change differed slightly in 2019.

# From Pierre Cashon (2020-10-20):
# The summer time this year started on March 28 at 00:00.
# https://wafa.ps/ar_page.aspx?id=GveQNZa872839351758aGveQNZ
Expand All @@ -3403,6 +3398,21 @@ Zone Asia/Karachi 4:28:12 - LMT 1907
# For now, guess spring-ahead transitions are at 00:00 on the Saturday
# preceding March's last Sunday (i.e., Sat>=24).

# From P Chan (2021-10-18):
# http://wafa.ps/Pages/Details/34701
# Palestine winter time will start from midnight 2021-10-29 (Thursday-Friday).
#
# From Heba Hemad, Palestine Ministry of Telecom & IT (2021-10-20):
# ... winter time will begin in Palestine from Friday 10-29, 01:00 AM
# by 60 minutes backwards.
#
# From Tim Parenti (2021-10-25), per Paul Eggert (2021-10-24):
# Guess future fall transitions at 01:00 on the Friday preceding October's
# last Sunday (i.e., Fri>=23), as this is more consistent with recent practice.

# From Heba Hamad (2022-03-10):
# summer time will begin in Palestine from Sunday 03-27-2022, 00:00 AM.

# Rule NAME FROM TO - IN ON AT SAVE LETTER/S
Rule EgyptAsia 1957 only - May 10 0:00 1:00 S
Rule EgyptAsia 1957 1958 - Oct 1 0:00 0 -
Expand Down Expand Up @@ -3437,8 +3447,10 @@ Rule Palestine 2016 2018 - Mar Sat>=24 1:00 1:00 S
Rule Palestine 2016 2018 - Oct Sat>=24 1:00 0 -
Rule Palestine 2019 only - Mar 29 0:00 1:00 S
Rule Palestine 2019 only - Oct Sat>=24 0:00 0 -
Rule Palestine 2020 max - Mar Sat>=24 0:00 1:00 S
Rule Palestine 2020 max - Oct Sat>=24 1:00 0 -
Rule Palestine 2020 2021 - Mar Sat>=24 0:00 1:00 S
Rule Palestine 2020 only - Oct 24 1:00 0 -
Rule Palestine 2021 max - Oct Fri>=23 1:00 0 -
Rule Palestine 2022 max - Mar Sun>=25 0:00 1:00 S

# Zone NAME STDOFF RULES FORMAT [UNTIL]
Zone Asia/Gaza 2:17:52 - LMT 1900 Oct
Expand Down
24 changes: 19 additions & 5 deletions australasia
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,22 @@ Zone Indian/Cocos 6:27:40 - LMT 1900
# "Minister for Employment, Parveen Bala says they had never thought of
# stopping daylight saving. He says it was just to decide on when it should
# start and end. Bala says it is a short period..."
# Since the end date is still in line with our ongoing predictions, assume for
# now that the later-than-usual start date is a one-time departure from the
# recent second Sunday in November pattern.
#
# From Tim Parenti (2021-10-11), per Jashneel Kumar (2021-10-11) and P Chan
# (2021-10-12):
# https://www.fiji.gov.fj/Media-Centre/Speeches/English/PM-BAINIMARAMA-S-COVID-19-ANNOUNCEMENT-10-10-21
# https://www.fbcnews.com.fj/news/covid-19/curfew-moved-back-to-11pm/
# In a 2021-10-10 speech concerning updated Covid-19 mitigation measures in
# Fiji, prime minister Josaia Voreqe "Frank" Bainimarama announced the
# suspension of DST for the 2021/2022 season: "Given that we are in the process
# of readjusting in the midst of so many changes, we will also put Daylight
# Savings Time on hold for this year. It will also make the reopening of
# scheduled commercial air service much smoother if we don't have to be
# concerned shifting arrival and departure times, which may look like a simple
# thing but requires some significant logistical adjustments domestically and
# internationally."
# Assume for now that DST will resume with the recent pre-2020 rules for the
# 2022/2023 season.

# Rule NAME FROM TO - IN ON AT SAVE LETTER/S
Rule Fiji 1998 1999 - Nov Sun>=1 2:00 1:00 -
Expand All @@ -399,10 +412,11 @@ Rule Fiji 2011 only - Mar Sun>=1 3:00 0 -
Rule Fiji 2012 2013 - Jan Sun>=18 3:00 0 -
Rule Fiji 2014 only - Jan Sun>=18 2:00 0 -
Rule Fiji 2014 2018 - Nov Sun>=1 2:00 1:00 -
Rule Fiji 2015 max - Jan Sun>=12 3:00 0 -
Rule Fiji 2015 2021 - Jan Sun>=12 3:00 0 -
Rule Fiji 2019 only - Nov Sun>=8 2:00 1:00 -
Rule Fiji 2020 only - Dec 20 2:00 1:00 -
Rule Fiji 2021 max - Nov Sun>=8 2:00 1:00 -
Rule Fiji 2022 max - Nov Sun>=8 2:00 1:00 -
Rule Fiji 2023 max - Jan Sun>=12 3:00 0 -
# Zone NAME STDOFF RULES FORMAT [UNTIL]
Zone Pacific/Fiji 11:55:44 - LMT 1915 Oct 26 # Suva
12:00 Fiji +12/+13
Expand Down
Loading

0 comments on commit 9e15fad

Please sign in to comment.