diff options
author | Assaf Gordon <assafgordon@gmail.com> | 2019-08-10 13:17:49 -0600 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-08-10 13:03:00 -0700 |
commit | 0673d8ab42c9bb0cf618a21b537cdd8fb976fb73 (patch) | |
tree | 530565ae9235d1f8aef70fa12c5c6fe541d691b9 /lib/parse-datetime.y | |
parent | f1f10d47be8762e4ca17c8957a0520b08d28abfb (diff) | |
download | gnulib-0673d8ab42c9bb0cf618a21b537cdd8fb976fb73.tar.gz |
parse-datetime: fix 'T' military timezone handling
* lib/parse-datetime.y (zone):
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.
Diffstat (limited to 'lib/parse-datetime.y')
-rw-r--r-- | lib/parse-datetime.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y index d371b9cb19..218e3dc5bd 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); } |