author | Marcus Comstedt <marcus@mc.pp.se> | |
Mon, 17 May 2010 19:07:10 +0000 (21:07 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 19 May 2010 05:00:17 +0000 (22:00 -0700) | ||
commit | 75b37e704781a9ae4db2f0beaaa023638c06490d | |
tree | 30205c11ccdabafaed0cae838794f02efdb6fcb2 | tree | snapshot |
parent | 3368edd4cda6306d524e10758e2c5a187dcd4ba6 | commit | diff |
Add "Z" as an alias for the timezone "UTC"
The name "Z" for the UTC timezone is required to properly parse ISO 8601
timestamps. Add it to the list of recognized timezones.
Because timezone names can be shorter than 3 letters, loosen the
restriction in match_alpha() that used to require at least 3 letters to
match to allow a short timezone name as long as it matches exactly. Prior
to the introduction of the "Z" zone, this already affected the timezone
"NT" (Nome).
Signed-off-by: Marcus Comstedt <marcus@mc.pp.se>
Reviewed-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The name "Z" for the UTC timezone is required to properly parse ISO 8601
timestamps. Add it to the list of recognized timezones.
Because timezone names can be shorter than 3 letters, loosen the
restriction in match_alpha() that used to require at least 3 letters to
match to allow a short timezone name as long as it matches exactly. Prior
to the introduction of the "Z" zone, this already affected the timezone
"NT" (Nome).
Signed-off-by: Marcus Comstedt <marcus@mc.pp.se>
Reviewed-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c | diff | blob | history |