diff options
| author | Philip Paeps <philip@FreeBSD.org> | 2018-12-30 08:13:51 +0000 |
|---|---|---|
| committer | Philip Paeps <philip@FreeBSD.org> | 2018-12-30 08:13:51 +0000 |
| commit | 00380ae2d71023dec5083d9fb3a688d8b2283dac (patch) | |
| tree | 62a3f6439375d002b2105bf31238c36f01826bc7 /ziguard.awk | |
| parent | fa550f940d8d5c5407528a8b5618c505f31156a7 (diff) | |
Import tzdata 2018hvendor/tzdata/tzdata2018h
Notes
svn path=/vendor/tzdata/dist/; revision=342611
svn path=/vendor/tzdata/tzdata2018h/; revision=342612; tag=vendor/tzdata/tzdata2018h
Diffstat (limited to 'ziguard.awk')
| -rw-r--r-- | ziguard.awk | 19 |
1 files changed, 18 insertions, 1 deletions
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 |
