]> asedeno.scripts.mit.edu Git - git.git/commitdiff
t/t0006: specify timezone as EST5 not EST to comply with POSIX
authorBrandon Casey <drafnel@gmail.com>
Tue, 6 Jul 2010 23:34:20 +0000 (18:34 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Jul 2010 16:13:17 +0000 (09:13 -0700)
POSIX requires that both the timezone "standard" and "offset" be specified
in the TZ environment variable.  This causes a problem on IRIX which does
not understand the timezone 'EST'.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0006-date.sh

index b2df4fe102454daa62c5c8247128d7f22f7e6ea9..1d4d0a5c7d2549c67334a8d5dd3f462962db81f2 100755 (executable)
@@ -39,7 +39,7 @@ check_parse 2008-02 bad
 check_parse 2008-02-14 bad
 check_parse '2008-02-14 20:30:45' '2008-02-14 20:30:45 +0000'
 check_parse '2008-02-14 20:30:45 -0500' '2008-02-14 20:30:45 -0500'
-check_parse '2008-02-14 20:30:45' '2008-02-14 20:30:45 -0500' EST
+check_parse '2008-02-14 20:30:45' '2008-02-14 20:30:45 -0500' EST5
 
 check_approxidate() {
        echo "$1 -> $2 +0000" >expect