Sync our copy of the timezone library with IANA release tzcode2019a.
authorTom Lane <[email protected]>
Fri, 26 Apr 2019 23:46:26 +0000 (19:46 -0400)
committerTom Lane <[email protected]>
Fri, 26 Apr 2019 23:47:05 +0000 (19:47 -0400)
commit7f36286c2e454ded91b0bcbb738b9d7648c67390
tree79c94ed7a35e304e5de11c23b608abe85dfcf804
parentbaeb12010d2532955ed815ea31682c3d8d088cbc
Sync our copy of the timezone library with IANA release tzcode2019a.

This corrects a small bug in zic that caused it to output an incorrect
year-2440 transition in the Africa/Casablanca zone.

More interestingly, zic has grown a "-r" option that limits the range of
zone transitions that it will put into the output files.  That might be
useful to people who don't like the weird GMT offsets that tzdb likes
to use for very old dates.  It appears that for dates before the cutoff
time specified with -r, zic will use the zone's standard-time offset
as of the cutoff time.  So for example one might do

make install ZIC_OPTIONS='-r @-1893456000'

to cause all dates before 1910-01-01 to be treated as though 1910
standard time prevailed indefinitely far back.  (Don't blame me for
the unfriendly way of specifying the cutoff time --- it's seconds
since or before the Unix epoch.  You can use extract(epoch ...)
to calculate it.)

As usual, back-patch to all supported branches.
src/timezone/Makefile
src/timezone/README
src/timezone/private.h
src/timezone/tzfile.h
src/timezone/zic.c