date.c: Support iso8601 timezone formats
commitee646eb48f9a7fc6c225facf2b7449a8a65ef8f2
authorHaitao Li <lihaitao@gmail.com>
Fri, 9 Sep 2011 10:10:33 +0000 (9 18:10 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Sep 2011 23:49:14 +0000 (12 16:49 -0700)
tree2a0a2643908b0556fe7e53b5580104183b7170ff
parentf696543dad6c7ba27b0c4fab167a5687263a9ba0
date.c: Support iso8601 timezone formats

Timezone designators in the following formats are all valid according to
ISO8601:2004, section 4.3.2:

    [+-]hh, [+-]hhmm, [+-]hh:mm

but we have ignored the ones with colon so far.

Signed-off-by: Haitao Li <lihaitao@gmail.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c
t/t0006-date.sh