Skip to content

Commit c566be3

Browse files
author
GitHub Actions
committed
Update tzdata and zoneinfo to version 2018g.
1 parent 147978a commit c566be3

File tree

11 files changed

+137
-149
lines changed

11 files changed

+137
-149
lines changed

tzdata/NEWS

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

3+
Release 2018g - 2018-10-26 22:22:45 -0700
4+
5+
Briefly:
6+
Morocco switches to permanent +01 on 2018-10-27.
7+
8+
Changes to future timestamps
9+
10+
Morocco switches from +00/+01 to permanent +01 effective 2018-10-27,
11+
so its clocks will not fall back on 2018-10-28 as previously scheduled.
12+
(Thanks to Mohamed Essedik Najd and Brian Inglis.)
13+
14+
Changes to code
15+
16+
When generating TZif files with leap seconds, zic no longer uses a
17+
format that trips up older 32-bit clients, fixing a bug introduced
18+
in 2018f. (Reported by Daniel Fischer.) Also, the zic workaround
19+
for QTBUG-53071 now also works for TZif files with leap seconds.
20+
21+
The translator to rearguard format now rewrites the line
22+
"Rule Japan 1948 1951 - Sep Sat>=8 25:00 0 S" to
23+
"Rule Japan 1948 1951 - Sep Sun>=9 1:00 0 S".
24+
This caters to zic before 2007 and to Oracle TZUpdater 2.2.0
25+
and earlier. (Reported by Christos Zoulas.)
26+
27+
Changes to past time zone abbreviations
28+
29+
Change HDT to HWT/HPT for WWII-era abbreviations in Hawaii.
30+
This reverts to 2011h, as the abbreviation change in 2011i was
31+
likely inadvertent.
32+
33+
Changes to documentation
34+
35+
tzfile.5 has new sections on interoperability issues.
36+
37+
338
Release 2018f - 2018-10-18 00:14:18 -0700
439

540
Briefly:

tzdata/africa

Lines changed: 32 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -844,94 +844,61 @@ Zone Indian/Mauritius 3:50:00 - LMT 1907 # Port Louis
844844
# <https://lnt.ma/le-maroc-reculera-dune-heure-le-dimanche-14-juin/> agrees
845845
# with the patch.
846846

847-
# From Paul Eggert (2015-06-08):
848-
# For now, guess that later spring and fall transitions will use 2015's rules,
849-
# and guess that Morocco will switch to standard time at 03:00 the last
850-
# Sunday before Ramadan, and back to DST at 02:00 the first Sunday after
851-
# Ramadan. To implement this, transition dates for 2016 through 2037 were
852-
# determined by running the following program under GNU Emacs 24.3, with the
853-
# results integrated by hand into the table below.
854-
# (let ((islamic-year 1437))
855-
# (require 'cal-islam)
856-
# (while (< islamic-year 1460)
857-
# (let ((a (calendar-islamic-to-absolute (list 9 1 islamic-year)))
858-
# (b (calendar-islamic-to-absolute (list 10 1 islamic-year)))
859-
# (sunday 0))
860-
# (while (/= sunday (mod (setq a (1- a)) 7)))
861-
# (while (/= sunday (mod b 7))
862-
# (setq b (1+ b)))
863-
# (setq a (calendar-gregorian-from-absolute a))
864-
# (setq b (calendar-gregorian-from-absolute b))
865-
# (insert
866-
# (format
867-
# (concat "Rule\tMorocco\t%d\tonly\t-\t%s\t%2d\t 3:00\t0\t-\n"
868-
# "Rule\tMorocco\t%d\tonly\t-\t%s\t%2d\t 2:00\t1:00\tS\n")
869-
# (car (cdr (cdr a))) (calendar-month-name (car a) t) (car (cdr a))
870-
# (car (cdr (cdr b))) (calendar-month-name (car b) t) (car (cdr b)))))
871-
# (setq islamic-year (+ 1 islamic-year))))
847+
# From Mohamed Essedik Najd (2018-10-26):
848+
# Today, a Moroccan government council approved the perpetual addition
849+
# of 60 minutes to the regular Moroccan timezone.
850+
# From Brian Inglis (2018-10-26):
851+
# http://www.maroc.ma/fr/actualites/le-conseil-de-gouvernement-adopte-un-projet-de-decret-relatif-lheure-legale-stipulant-le
872852

873853
# RULE NAME FROM TO TYPE IN ON AT SAVE LETTER/S
874-
875-
Rule Morocco 1939 only - Sep 12 0:00 1:00 S
854+
Rule Morocco 1939 only - Sep 12 0:00 1:00 -
876855
Rule Morocco 1939 only - Nov 19 0:00 0 -
877-
Rule Morocco 1940 only - Feb 25 0:00 1:00 S
856+
Rule Morocco 1940 only - Feb 25 0:00 1:00 -
878857
Rule Morocco 1945 only - Nov 18 0:00 0 -
879-
Rule Morocco 1950 only - Jun 11 0:00 1:00 S
858+
Rule Morocco 1950 only - Jun 11 0:00 1:00 -
880859
Rule Morocco 1950 only - Oct 29 0:00 0 -
881-
Rule Morocco 1967 only - Jun 3 12:00 1:00 S
860+
Rule Morocco 1967 only - Jun 3 12:00 1:00 -
882861
Rule Morocco 1967 only - Oct 1 0:00 0 -
883-
Rule Morocco 1974 only - Jun 24 0:00 1:00 S
862+
Rule Morocco 1974 only - Jun 24 0:00 1:00 -
884863
Rule Morocco 1974 only - Sep 1 0:00 0 -
885-
Rule Morocco 1976 1977 - May 1 0:00 1:00 S
864+
Rule Morocco 1976 1977 - May 1 0:00 1:00 -
886865
Rule Morocco 1976 only - Aug 1 0:00 0 -
887866
Rule Morocco 1977 only - Sep 28 0:00 0 -
888-
Rule Morocco 1978 only - Jun 1 0:00 1:00 S
867+
Rule Morocco 1978 only - Jun 1 0:00 1:00 -
889868
Rule Morocco 1978 only - Aug 4 0:00 0 -
890-
Rule Morocco 2008 only - Jun 1 0:00 1:00 S
869+
Rule Morocco 2008 only - Jun 1 0:00 1:00 -
891870
Rule Morocco 2008 only - Sep 1 0:00 0 -
892-
Rule Morocco 2009 only - Jun 1 0:00 1:00 S
871+
Rule Morocco 2009 only - Jun 1 0:00 1:00 -
893872
Rule Morocco 2009 only - Aug 21 0:00 0 -
894-
Rule Morocco 2010 only - May 2 0:00 1:00 S
873+
Rule Morocco 2010 only - May 2 0:00 1:00 -
895874
Rule Morocco 2010 only - Aug 8 0:00 0 -
896-
Rule Morocco 2011 only - Apr 3 0:00 1:00 S
875+
Rule Morocco 2011 only - Apr 3 0:00 1:00 -
897876
Rule Morocco 2011 only - Jul 31 0:00 0 -
898-
Rule Morocco 2012 2013 - Apr lastSun 2:00 1:00 S
877+
Rule Morocco 2012 2013 - Apr lastSun 2:00 1:00 -
899878
Rule Morocco 2012 only - Jul 20 3:00 0 -
900-
Rule Morocco 2012 only - Aug 20 2:00 1:00 S
879+
Rule Morocco 2012 only - Aug 20 2:00 1:00 -
901880
Rule Morocco 2012 only - Sep 30 3:00 0 -
902881
Rule Morocco 2013 only - Jul 7 3:00 0 -
903-
Rule Morocco 2013 only - Aug 10 2:00 1:00 S
904-
Rule Morocco 2013 max - Oct lastSun 3:00 0 -
905-
Rule Morocco 2014 2021 - Mar lastSun 2:00 1:00 S
882+
Rule Morocco 2013 only - Aug 10 2:00 1:00 -
883+
Rule Morocco 2013 2018 - Oct lastSun 3:00 0 -
884+
Rule Morocco 2014 2018 - Mar lastSun 2:00 1:00 -
906885
Rule Morocco 2014 only - Jun 28 3:00 0 -
907-
Rule Morocco 2014 only - Aug 2 2:00 1:00 S
886+
Rule Morocco 2014 only - Aug 2 2:00 1:00 -
908887
Rule Morocco 2015 only - Jun 14 3:00 0 -
909-
Rule Morocco 2015 only - Jul 19 2:00 1:00 S
888+
Rule Morocco 2015 only - Jul 19 2:00 1:00 -
910889
Rule Morocco 2016 only - Jun 5 3:00 0 -
911-
Rule Morocco 2016 only - Jul 10 2:00 1:00 S
890+
Rule Morocco 2016 only - Jul 10 2:00 1:00 -
912891
Rule Morocco 2017 only - May 21 3:00 0 -
913-
Rule Morocco 2017 only - Jul 2 2:00 1:00 S
892+
Rule Morocco 2017 only - Jul 2 2:00 1:00 -
914893
Rule Morocco 2018 only - May 13 3:00 0 -
915-
Rule Morocco 2018 only - Jun 17 2:00 1:00 S
916-
Rule Morocco 2019 only - May 5 3:00 0 -
917-
Rule Morocco 2019 only - Jun 9 2:00 1:00 S
918-
Rule Morocco 2020 only - Apr 19 3:00 0 -
919-
Rule Morocco 2020 only - May 24 2:00 1:00 S
920-
Rule Morocco 2021 only - Apr 11 3:00 0 -
921-
Rule Morocco 2021 only - May 16 2:00 1:00 S
922-
Rule Morocco 2022 only - May 8 2:00 1:00 S
923-
Rule Morocco 2023 only - Apr 23 2:00 1:00 S
924-
Rule Morocco 2024 only - Apr 14 2:00 1:00 S
925-
Rule Morocco 2025 only - Apr 6 2:00 1:00 S
926-
Rule Morocco 2026 max - Mar lastSun 2:00 1:00 S
927-
Rule Morocco 2036 only - Oct 19 3:00 0 -
928-
Rule Morocco 2037 only - Oct 4 3:00 0 -
894+
Rule Morocco 2018 only - Jun 17 2:00 1:00 -
929895

930896
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
931897
Zone Africa/Casablanca -0:30:20 - LMT 1913 Oct 26
932-
0:00 Morocco WE%sT 1984 Mar 16
933-
1:00 - CET 1986
934-
0:00 Morocco WE%sT
898+
0:00 Morocco +00/+01 1984 Mar 16
899+
1:00 - +01 1986
900+
0:00 Morocco +00/+01 2018 Oct 27
901+
1:00 - +01
935902

936903
# Western Sahara
937904
#
@@ -946,7 +913,8 @@ Zone Africa/Casablanca -0:30:20 - LMT 1913 Oct 26
946913

947914
Zone Africa/El_Aaiun -0:52:48 - LMT 1934 Jan # El Aaiún
948915
-1:00 - -01 1976 Apr 14
949-
0:00 Morocco WE%sT
916+
0:00 Morocco +00/+01 2018 Oct 27
917+
1:00 - +01
950918

951919
# Mozambique
952920
#

tzdata/europe

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3440,7 +3440,8 @@ Rule Spain 1978 only - Oct 1 2:00s 0 -
34403440
#Rule NatSpain 1937 only - May 22 23:00 1:00 S
34413441
#Rule NatSpain 1937 1938 - Oct Sat>=1 24:00s 0 -
34423442
#Rule NatSpain 1938 only - Mar 26 23:00 1:00 S
3443-
# The following rules are copied from Morocco from 1967 through 1978.
3443+
# The following rules are copied from Morocco from 1967 through 1978,
3444+
# except with "S" letters.
34443445
Rule SpainAfrica 1967 only - Jun 3 12:00 1:00 S
34453446
Rule SpainAfrica 1967 only - Oct 1 0:00 0 -
34463447
Rule SpainAfrica 1974 only - Jun 24 0:00 1:00 S

tzdata/northamerica

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,19 @@ Zone America/North_Dakota/Beulah -6:47:07 - LMT 1883 Nov 18 12:12:53
439439
# western South Dakota, far western Texas (El Paso County, Hudspeth County,
440440
# and Pine Springs and Nickel Creek in Culberson County), Utah, Wyoming
441441
#
442+
# From Paul Eggert (2018-10-25):
443+
# On 1921-03-04 federal law placed all of Texas into the central time zone.
444+
# However, El Paso ignored the law for decades and continued to observe
445+
# mountain time, on the grounds that that's what they had always done
446+
# and they weren't about to let the federal government tell them what to do.
447+
# Eventually the federal government gave in and changed the law on
448+
# 1970-04-10 to match what El Paso was actually doing. Although
449+
# that's slightly after our 1970 cutoff, there is no need to create a
450+
# separate zone for El Paso since they were ignoring the law anyway. See:
451+
# Long T. El Pasoans were time rebels, fought to stay in Mountain zone.
452+
# El Paso Times. 2018-10-24 06:40 -06.
453+
# https://www.elpasotimes.com/story/news/local/el-paso/2018/10/24/el-pasoans-were-time-rebels-fought-stay-mountain-zone/1744509002/
454+
#
442455
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER
443456
Rule Denver 1920 1921 - Mar lastSun 2:00 1:00 D
444457
Rule Denver 1920 only - Oct lastSun 2:00 0 S
@@ -708,9 +721,7 @@ Zone America/Adak 12:13:22 - LMT 1867 Oct 19 12:44:35
708721
Zone Pacific/Honolulu -10:31:26 - LMT 1896 Jan 13 12:00
709722
-10:30 - HST 1933 Apr 30 2:00
710723
-10:30 1:00 HDT 1933 May 21 12:00
711-
-10:30 - HST 1942 Feb 9 2:00
712-
-10:30 1:00 HDT 1945 Sep 30 2:00
713-
-10:30 - HST 1947 Jun 8 2:00
724+
-10:30 US H%sT 1947 Jun 8 2:00
714725
-10:00 - HST
715726

716727
# Now we turn to US areas that have diverged from the consensus since 1970.

tzdata/theory.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ <h2 id="abbreviations">Time zone abbreviations</h2>
407407
EST/EDT/EWT/EPT/EDDT Eastern [North America],
408408
EET/EEST Eastern European,
409409
GST Guam,
410-
HST/HDT Hawaii,
410+
HST/HDT/HWT/HPT Hawaii,
411411
HKT/HKST Hong Kong,
412412
IST India,
413413
IST/GMT Irish,

tzdata/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2018f
1+
2018g

tzdata/ziguard.awk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ DATAFORM != "main" {
8080
if (comment_out) {
8181
sub(/^/, "#")
8282
}
83+
84+
# In rearguard format, change the Japan rule line with "Sat>=8 25:00"
85+
# to "Sun>=9 1:00", to cater to zic before 2007 and to older Java.
86+
if (!vanguard && $1 == "Rule" && $7 == "Sat>=8" && $8 == "25:00") {
87+
sub(/Sat>=8/, "Sun>=9")
88+
sub(/25:00/, " 1:00")
89+
}
8390
}
8491

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

tzdata/zishrink.awk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,6 @@ function process_input_line(line, field, end, i, n, startdef)
172172
if (line ~ /^R /) return
173173
line = substr(line, 1, RSTART) substr(line, RSTART + 5)
174174
}
175-
# Replace SpainAfrica rules with Morocco, as they are duplicates.
176-
if (match(line, / SpainAfrica /)) {
177-
if (line ~ /^R /) return
178-
line = substr(line, 1, RSTART) "Morocco" substr(line, RSTART + RLENGTH - 1)
179-
}
180175

181176
# Abbreviate times.
182177
while (match(line, /[: ]0+[0-9]/))

zoneinfo/Africa/Casablanca.ics

Lines changed: 16 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ BEGIN:VCALENDAR
22
PRODID:-//github.com/libical/vzic//NONSGML ICS//EN
33
VERSION:2.0
44
BEGIN:VTIMEZONE
5-
TZID:/github.com/libical/tzdbics/20221031_2015e/Africa/Casablanca
6-
LAST-MODIFIED:20221031T165540Z
5+
TZID:/github.com/libical/tzdbics/20221031_2018g/Africa/Casablanca
6+
LAST-MODIFIED:20221031T171904Z
77
X-LIC-LOCATION:Africa/Casablanca
88
X-PROLEPTIC-TZNAME:LMT
99
BEGIN:STANDARD
10-
TZNAME:WET
10+
TZNAME:+00
1111
TZOFFSETFROM:-003020
1212
TZOFFSETTO:+0000
1313
DTSTART:19131026T000000
1414
END:STANDARD
1515
BEGIN:DAYLIGHT
16-
TZNAME:WEST
16+
TZNAME:+01
1717
TZOFFSETFROM:+0000
1818
TZOFFSETTO:+0100
1919
DTSTART:19390912T000000
@@ -31,16 +31,9 @@ RDATE:20150719T020000
3131
RDATE:20160710T020000
3232
RDATE:20170702T020000
3333
RDATE:20180617T020000
34-
RDATE:20190609T020000
35-
RDATE:20200524T020000
36-
RDATE:20210516T020000
37-
RDATE:20220508T020000
38-
RDATE:20230423T020000
39-
RDATE:20240414T020000
40-
RDATE:20250406T020000
4134
END:DAYLIGHT
4235
BEGIN:STANDARD
43-
TZNAME:WET
36+
TZNAME:+00
4437
TZOFFSETFROM:+0100
4538
TZOFFSETTO:+0000
4639
DTSTART:19391119T000000
@@ -64,66 +57,53 @@ RDATE:20150614T030000
6457
RDATE:20160605T030000
6558
RDATE:20170521T030000
6659
RDATE:20180513T030000
67-
RDATE:20190505T030000
68-
RDATE:20200419T030000
69-
RDATE:20210411T030000
70-
RDATE:20361019T030000
71-
RDATE:20371004T030000
7260
END:STANDARD
7361
BEGIN:DAYLIGHT
74-
TZNAME:WEST
62+
TZNAME:+01
7563
TZOFFSETFROM:+0000
7664
TZOFFSETTO:+0100
7765
DTSTART:19760501T000000
7866
RRULE:FREQ=YEARLY;UNTIL=19770501T000000Z
7967
END:DAYLIGHT
8068
BEGIN:STANDARD
81-
TZNAME:CET
69+
TZNAME:+01
8270
TZOFFSETFROM:+0000
8371
TZOFFSETTO:+0100
8472
DTSTART:19840316T000000
8573
END:STANDARD
8674
BEGIN:DAYLIGHT
87-
TZNAME:WEST
75+
TZNAME:+01
8876
TZOFFSETFROM:+0000
8977
TZOFFSETTO:+0100
9078
DTSTART:20080601T000000
9179
RRULE:FREQ=YEARLY;UNTIL=20090601T000000Z
9280
END:DAYLIGHT
9381
BEGIN:DAYLIGHT
94-
TZNAME:WEST
82+
TZNAME:+01
9583
TZOFFSETFROM:+0000
9684
TZOFFSETTO:+0100
9785
DTSTART:20120429T020000
9886
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=-1SU;UNTIL=20130428T020000Z
9987
END:DAYLIGHT
10088
BEGIN:STANDARD
101-
TZNAME:WET
89+
TZNAME:+00
10290
TZOFFSETFROM:+0100
10391
TZOFFSETTO:+0000
10492
DTSTART:20131027T030000
105-
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU;UNTIL=20351028T020000Z
93+
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU;UNTIL=20171029T020000Z
10694
END:STANDARD
10795
BEGIN:DAYLIGHT
108-
TZNAME:WEST
96+
TZNAME:+01
10997
TZOFFSETFROM:+0000
11098
TZOFFSETTO:+0100
11199
DTSTART:20140330T020000
112-
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU;UNTIL=20210328T020000Z
113-
END:DAYLIGHT
114-
BEGIN:DAYLIGHT
115-
TZNAME:WEST
116-
TZOFFSETFROM:+0000
117-
TZOFFSETTO:+0100
118-
DTSTART:20260329T020000
119-
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
100+
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU;UNTIL=20180325T020000Z
120101
END:DAYLIGHT
121102
BEGIN:STANDARD
122-
TZNAME:WET
103+
TZNAME:+01
123104
TZOFFSETFROM:+0100
124-
TZOFFSETTO:+0000
125-
DTSTART:20381031T030000
126-
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
105+
TZOFFSETTO:+0100
106+
DTSTART:20181027T000000
127107
END:STANDARD
128108
END:VTIMEZONE
129109
END:VCALENDAR

0 commit comments

Comments
 (0)