Code

date.c: improve guess between timezone offset and year.
authorPaul Eggert <eggert@CS.UCLA.EDU>
Thu, 8 Jun 2006 21:54:13 +0000 (14:54 -0700)
committerJunio C Hamano <junkio@cox.net>
Fri, 9 Jun 2006 04:22:33 +0000 (21:22 -0700)
commit7122f82f56425d942bc5e892ed5e6b3bbd0a6724
treed2cdc2c577232b6a3af2711a3fd42507d255803e
parent7612a1efdb0c0806b43db10ce784707aae874340
date.c: improve guess between timezone offset and year.

When match_digit() guesses a four-digit string to tell if it is
a year or a timezone, it did not consider that some real-world
places have UTC offsets equal to +1400.

   $ date; TZ=UTC0 date; TZ=Pacific/Kiritimati date
   Wed Jun  7 23:25:42 PDT 2006
   Thu Jun  8 06:25:42 UTC 2006
   Thu Jun  8 20:25:42 LINT 2006

Signed-off-by: Paul Eggert <eggert@CS.UCLA.EDU>
Signed-off-by: Junio C Hamano <junkio@cox.net>
date.c