From 00380ae2d71023dec5083d9fb3a688d8b2283dac Mon Sep 17 00:00:00 2001 From: Philip Paeps Date: Sun, 30 Dec 2018 08:13:51 +0000 Subject: Import tzdata 2018h --- ziguard.awk | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'ziguard.awk') diff --git a/ziguard.awk b/ziguard.awk index e3c729832dd3..e8ef49e16f14 100644 --- a/ziguard.awk +++ b/ziguard.awk @@ -54,7 +54,7 @@ DATAFORM != "main" { } } - # If this line should differ due to Namibia using Rule SAVE suffixes, + # If this line should differ due to Namibia using negative SAVE values, # uncomment the desired version and comment out the undesired one. Rule_Namibia = /^#?Rule[\t ]+Namibia[\t ]/ Zone_using_Namibia_rule \ @@ -87,6 +87,23 @@ DATAFORM != "main" { sub(/Sat>=8/, "Sun>=9") sub(/25:00/, " 1:00") } + + # In rearguard format, change the Morocco lines with negative SAVE values + # to use positive SAVE values. + if (!vanguard && $1 == "Rule" && $2 == "Morocco" && $4 == 2018 \ + && $6 == "Oct") { + sub(/\t2018\t/, "\t2017\t") + } + if (!vanguard && $1 == "Rule" && $2 == "Morocco" && 2019 <= $3) { + if ($9 == "0") { + sub(/\t0\t/, "\t1:00\t") + } else { + sub(/\t-1:00\t/, "\t0\t") + } + } + if (!vanguard && $1 == "1:00" && $2 == "Morocco" && $3 == "+01/+00") { + sub(/1:00\tMorocco\t\+01\/\+00$/, "0:00\tMorocco\t+00/+01") + } } # If a Link line is followed by a Zone line for the same data, comment -- cgit v1.3