>From 9f464d51d8311f33340942c76e758454fa59042d Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Sat, 10 Aug 2019 13:17:49 -0600 Subject: [PATCH] parse-datetime: fix 'T' military timezone handling follow-up to the previous commit: the 'T' case is handled outside the conversion table (used as either military timezone UTC-7 or ISO8601 separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other timezone letters. * lib/parse-datetime.y: Change 'T' value from UTC+7 yo UTC-7. * ChangeLog: Mention the change. --- ChangeLog | 8 ++++++++ lib/parse-datetime.y | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7616b5efd..7c25c53e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2019-08-10 Assaf Gordon + + parse-datetime: fix 'T' military timezone handling + follow-up to the previous commit: the 'T' case is handled outside the + conversion table (used as either military timezone UTC-7 or ISO8601 + separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other + timezone letters. + 2019-08-09 Paul Eggert parse-datetime: fix military timezone letters diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y index d371b9cb1..218e3dc5b 100644 --- a/lib/parse-datetime.y +++ b/lib/parse-datetime.y @@ -754,14 +754,14 @@ zone: tZONE { pc->time_zone = $1; } | 'T' - { pc->time_zone = HOUR (7); } + { pc->time_zone = -HOUR (7); } | tZONE relunit_snumber { pc->time_zone = $1; if (! apply_relative_time (pc, $2, 1)) YYABORT; debug_print_relative_time (_("relative"), pc); } | 'T' relunit_snumber - { pc->time_zone = HOUR (7); + { pc->time_zone = -HOUR (7); if (! apply_relative_time (pc, $2, 1)) YYABORT; debug_print_relative_time (_("relative"), pc); } -- 2.20.1