* 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.
+2019-08-10 Assaf Gordon <assafgordon@gmail.com>
+
+ 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.
+
2019-08-09 Paul Eggert <eggert@cs.ucla.edu>
parse-datetime: fix military timezone letters
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);
}