Skip to content

Commit

Permalink
Update tzdata and zoneinfo to version 2018b.
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Oct 31, 2022
1 parent 7915eee commit 2976053
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 21 deletions.
25 changes: 14 additions & 11 deletions tzdata/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -455,14 +455,15 @@ WEB_PAGES= tz-art.html tz-how-to.html tz-link.html
DOCS= $(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
PRIMARY_YDATA= africa antarctica asia australasia \
europe northamerica southamerica
YDATA= $(PRIMARY_YDATA) etcetera $(BACKWARD)
YDATA= $(PRIMARY_YDATA) etcetera
NDATA= systemv factory
TDATA= $(YDATA) $(NDATA)
TDATA_TO_CHECK= $(YDATA) $(NDATA) backward pacificnew
TDATA= $(YDATA) $(NDATA) $(BACKWARD)
ZONETABLES= zone1970.tab zone.tab
TABDATA= iso3166.tab $(TZDATA_TEXT) $(ZONETABLES)
LEAP_DEPS= leapseconds.awk leap-seconds.list
TZDATA_ZI_DEPS= zishrink.awk version $(TDATA) $(PACKRATDATA)
DATA= $(YDATA) $(NDATA) backzone iso3166.tab leap-seconds.list \
DATA= $(TDATA_TO_CHECK) backzone iso3166.tab leap-seconds.list \
leapseconds yearistype.sh $(ZONETABLES)
AWK_SCRIPTS= checklinks.awk checktab.awk leapseconds.awk zishrink.awk
MISC= $(AWK_SCRIPTS) zoneinfo2tdf.pl
Expand Down Expand Up @@ -670,22 +671,24 @@ check_character_set: $(ENCHILADA)
$(MISC) $(SOURCES) $(WEB_PAGES) \
CONTRIBUTING LICENSE Makefile README \
version tzdata.zi && \
! grep -Env $(SAFE_SHARP_LINE) $(TDATA) backzone \
! grep -Env $(SAFE_SHARP_LINE) $(TDATA_TO_CHECK) backzone \
leapseconds yearistype.sh zone.tab && \
! grep -Env $(OK_LINE) $(ENCHILADA); \
}
check_white_space: $(ENCHILADA)
patfmt=' \t|[\f\r\v]' && pat=`printf "$$patfmt\\n"` && \
! grep -En "$$pat" $(ENCHILADA)
! grep -n '[[:space:]]$$' $(ENCHILADA)
! grep -n '[[:space:]]$$' \
$$(ls $(ENCHILADA) | grep -Fvx leap-seconds.list)
PRECEDES_FILE_NAME = ^(Zone|Link[[:space:]]+[^[:space:]]+)[[:space:]]+
FILE_NAME_COMPONENT_TOO_LONG = \
$(PRECEDES_FILE_NAME)[^[:space:]]*[^/[:space:]]{15}
check_name_lengths: $(TDATA) backzone
! grep -En '$(FILE_NAME_COMPONENT_TOO_LONG)' $(TDATA) backzone
check_name_lengths: $(TDATA_TO_CHECK) backzone
! grep -En '$(FILE_NAME_COMPONENT_TOO_LONG)' \
$(TDATA_TO_CHECK) backzone
CHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; }
Expand All @@ -699,8 +702,8 @@ check_sorted: backward backzone iso3166.tab zone.tab zone1970.tab
$(AWK) '/^[^#]/ $(CHECK_CC_LIST)' zone1970.tab | \
LC_ALL=C sort -cu
check_links: checklinks.awk $(TDATA)
$(AWK) -f checklinks.awk $(TDATA)
check_links: checklinks.awk $(TDATA_TO_CHECK)
$(AWK) -f checklinks.awk $(TDATA_TO_CHECK)
$(AWK) -f checklinks.awk tzdata.zi
check_tables: checktab.awk $(PRIMARY_YDATA) $(ZONETABLES)
Expand Down Expand Up @@ -803,10 +806,10 @@ check_public:
$(MAKE) maintainer-clean
$(MAKE) CFLAGS='$(GCC_DEBUG_FLAGS)' ALL
mkdir -p public.dir
for i in $(TDATA) tzdata.zi; do \
for i in $(TDATA_TO_CHECK) tzdata.zi; do \
$(zic) -v -d public.dir $$i 2>&1 || exit; \
done
$(zic) -v -d public.dir $(TDATA)
$(zic) -v -d public.dir $(TDATA_TO_CHECK)
rm -fr public.dir
# Check that the code works under various alternative
Expand Down
12 changes: 12 additions & 0 deletions tzdata/NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
News for the tz database

Release 2018b - 2018-01-17 23:24:48 -0800

Briefly:
Fix a packaging problem in tz2018a, which was missing 'pacificnew'.

Changes to build procedure

The distribution now contains the file 'pacificnew' again.
This file was inadvertantly omitted in the 2018a distribution.
(Problem reported by Matias Fonzo.)


Release 2018a - 2018-01-12 22:29:21 -0800

Briefly:
Expand Down
2 changes: 1 addition & 1 deletion tzdata/README
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ platform other than GNU/Linux. Then run the following commands,
substituting your desired installation directory for "$HOME/tzdir":

make TOPDIR=$HOME/tzdir install
$HOME/tzdir/etc/zdump -v America/Los_Angeles
$HOME/tzdir/usr/bin/zdump -v America/Los_Angeles

Historical local time information has been included here to:

Expand Down
15 changes: 10 additions & 5 deletions tzdata/leap-seconds.list
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@
# or
# Terry Quinn, "The BIPM and the Accurate Measurement
# of Time," Proc. of the IEEE, Vol. 79, pp. 894-905,
# July, 1991.
# July, 1991. <http://dx.doi.org/10.1109/5.84965>
# reprinted in:
# Christine Hackman and Donald B Sullivan (eds.)
# Time and Frequency Measurement
# American Association of Physics Teachers (1996)
# <http://tf.nist.gov/general/pdf/1168.pdf>, pp. 75-86
#
# 4. The decision to insert a leap second into UTC is currently
# the responsibility of the International Earth Rotation and
Expand Down Expand Up @@ -199,10 +204,10 @@
# current -- the update time stamp, the data and the name of the file
# will not change.
#
# Updated through IERS Bulletin C54
# File expires on: 28 June 2018
# Updated through IERS Bulletin C55
# File expires on: 28 December 2018
#
#@ 3739132800
#@ 3754944000
#
2272060800 10 # 1 Jan 1972
2287785600 11 # 1 Jul 1972
Expand Down Expand Up @@ -247,4 +252,4 @@
# the hash line is also ignored in the
# computation.
#
#h 5101445a 69948b51 9153e2b 2086e3d8 d54561a3
#h 44dcf58c e28d25aa b36612c8 f3d3e8b5 a8fdf478
4 changes: 2 additions & 2 deletions tzdata/leapseconds
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ Leap 2012 Jun 30 23:59:60 + S
Leap 2015 Jun 30 23:59:60 + S
Leap 2016 Dec 31 23:59:60 + S

# Updated through IERS Bulletin C54
# File expires on: 28 June 2018
# Updated through IERS Bulletin C55
# File expires on: 28 December 2018
27 changes: 27 additions & 0 deletions tzdata/pacificnew
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file is in the public domain, so clarified as of
# 2009-05-17 by Arthur David Olson.

# From Arthur David Olson (1989-04-05):
# On 1989-04-05, the U. S. House of Representatives passed (238-154) a bill
# establishing "Pacific Presidential Election Time"; it was not acted on
# by the Senate or signed into law by the President.
# You might want to change the "PE" (Presidential Election) below to
# "Q" (Quadrennial) to maintain three-character zone abbreviations.
# If you're really conservative, you might want to change it to "D".
# Avoid "L" (Leap Year), which won't be true in 2100.

# If Presidential Election Time is ever established, replace "XXXX" below
# with the year the law takes effect and uncomment the "##" lines.

# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
## Rule Twilite XXXX max - Apr Sun>=1 2:00 1:00 D
## Rule Twilite XXXX max uspres Oct lastSun 2:00 1:00 PE
## Rule Twilite XXXX max uspres Nov Sun>=7 2:00 0 S
## Rule Twilite XXXX max nonpres Oct lastSun 2:00 0 S

# Zone NAME GMTOFF RULES/SAVE FORMAT [UNTIL]
## Zone America/Los_Angeles-PET -8:00 US P%sT XXXX
## -8:00 Twilite P%sT

# For now...
Link America/Los_Angeles US/Pacific-New ##
2 changes: 1 addition & 1 deletion tzdata/theory.html
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ <h2 id="planets">Time and time zones on other planets</h2>
Michael Allison and Robert Schmunk,
"<a href="https://www.giss.nasa.gov/tools/mars24/help/notes.html">Technical
Notes on Mars Solar Time as Adopted by the Mars24 Sunclock</a>"
(2012-08-08).
(2015-06-30).
</li>
<li>
Jia-Rui Chong,
Expand Down
2 changes: 1 addition & 1 deletion tzdata/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2018a
2018b

0 comments on commit 2976053

Please sign in to comment.