summaryrefslogtreecommitdiff
path: root/ziguard.awk
diff options
context:
space:
mode:
authorPhilip Paeps <philip@FreeBSD.org>2026-07-08 20:44:19 +0000
committerPhilip Paeps <philip@FreeBSD.org>2026-07-08 20:44:19 +0000
commitdd6fd39608b6197e67fba90d4e1deb15f70b8a4f (patch)
tree57898d5ad6ab8cfccd82db5741f8a7702f8f2ae9 /ziguard.awk
parentdef146fe2a3e8fffd5daba27e6bd59b65f2e453e (diff)
Diffstat (limited to 'ziguard.awk')
-rw-r--r--ziguard.awk8
1 files changed, 4 insertions, 4 deletions
diff --git a/ziguard.awk b/ziguard.awk
index c0acb72a0380..ba3a13405d75 100644
--- a/ziguard.awk
+++ b/ziguard.awk
@@ -184,7 +184,7 @@ DATAFORM != "main" {
dstoff = get_minutes(rules)
} else {
# The DST offset is normally an hour, but there are special cases.
- if (rules == "Morocco" && NF == 3) {
+ if (rules == "Morocco" && $4 == 2026) {
dstoff = -60
} else if (rules == "NBorneo") {
dstoff = 20
@@ -286,13 +286,13 @@ DATAFORM != "main" {
}
}
}
- if ($1 ~ /^[+0-9-]/ && NF == 3) {
+ if ($1 ~ /^[+0-9-]/ && $4 == 2026) {
if (DATAFORM == "rearguard") {
sub(/1:00\tMorocco/, "0:00\tMorocco")
- sub(/\t\+01\/\+00$/, "\t+00/+01")
+ sub(/\t\+01\/\+00/, "\t+00/+01")
} else {
sub(/0:00\tMorocco/, "1:00\tMorocco")
- sub(/\t\+00\/+01$/, "\t+01/+00")
+ sub(/\t\+00\/+01/, "\t+01/+00")
}
}
}