diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2020-04-24 22:07:32 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-24 14:06:09 -0700 |
commit | 544ed961a50c3442a3ec5643f2c443cd3e17311a (patch) | |
tree | 80a08aecf99b91afd3b838b4185d6de301e23117 /t | |
parent | date.c: skip fractional second part of ISO-8601 (diff) | |
download | tgif-544ed961a50c3442a3ec5643f2c443cd3e17311a.tar.xz |
date.c: allow compact version of ISO-8601 datetime
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t0006-date.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t0006-date.sh b/t/t0006-date.sh index 80917c81c3..75ee9a96b8 100755 --- a/t/t0006-date.sh +++ b/t/t0006-date.sh @@ -82,6 +82,9 @@ 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 -0500' '2008-02-14 20:30:45 -0500' +check_parse '20080214T203045-04:00' '2008-02-14 20:30:45 -0400' +check_parse '20080214T203045 -04:00' '2008-02-14 20:30:45 -0400' +check_parse '20080214T203045.019-04:00' '2008-02-14 20:30:45 -0400' check_parse '2008-02-14 20:30:45.019-04:00' '2008-02-14 20:30:45 -0400' check_parse '2008-02-14 20:30:45 -0015' '2008-02-14 20:30:45 -0015' check_parse '2008-02-14 20:30:45 -5' '2008-02-14 20:30:45 +0000' |