From 2c655c731735e3fcb08c752ded35b53cbf280a63 Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Mon, 29 Jun 2026 02:47:13 +0100 Subject: [PATCH] [PROPOSED] Update ziguard.awk to fix Morocco's stdoff Problem reported by liuchao (CR) in: https://lists.iana.org/hyperkitty/list/tz@iana.org/thread/43V2IHD6GZQAXMS55N62BEN5TTMMBG26/ * ziguard.awk: Adjust to recent changes for Morocco. --- ziguard.awk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ziguard.awk b/ziguard.awk index c9d08dc1..2ff5ac7e 100644 --- a/ziguard.awk +++ b/ziguard.awk @@ -286,13 +286,13 @@ DATAFORM != "main" { } } } - if ($1 ~ /^[+0-9-]/ && NF == 3) { + if ($1 ~ /^[+0-9-]/ && NF == 7) { 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") } } } -- 2.23.0