summaryrefslogtreecommitdiff
path: root/tz/ziguard.awk
diff options
context:
space:
mode:
Diffstat (limited to 'tz/ziguard.awk')
-rw-r--r--tz/ziguard.awk8
1 files changed, 7 insertions, 1 deletions
diff --git a/tz/ziguard.awk b/tz/ziguard.awk
index 6888c27..2be6d52 100644
--- a/tz/ziguard.awk
+++ b/tz/ziguard.awk
@@ -104,13 +104,19 @@ DATAFORM != "main" {
}
if (!vanguard && $1 == "Rule" && $2 == "Morocco" && 2019 <= $3) {
if ($9 == "0") {
+ last_std_date = $3 " " $6 " " $7 " " $8
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")
+ # This introduces a transition from 01:59:59 +00 to 03:00:00 +01
+ # with both times being standard (i.e., a change to standard UT offset).
+ # This is rearguard's way to approximate the actual prediction,
+ # which is that of an ordinary transition from DST to standard time.
+ sub(/1:00\tMorocco\t\+01\/\+00$/,
+ "0:00\tMorocco\t+00/+01\t" last_std_date "\n\t\t\t 1:00\t-\t+01")
}
}