diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-03-21 14:55:14 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-03-21 14:55:14 -0700 |
commit | e577feced0620813aaa4d1355a9588b6f8a2c300 (patch) | |
tree | f98b0b5e7058d0e0df5a2e89bc597d23988c2b5d | |
parent | 1f49f7506f0d840e048ba78f7e0544c407568b58 (diff) | |
parent | e4e9d5fa97c2ad989a98fda253b9700e2b224d37 (diff) | |
download | git-e577feced0620813aaa4d1355a9588b6f8a2c300.tar.gz |
Merge branch 'bb/t0006-negative-tz-offset'
More tests on showing time with negative TZ offset.
* bb/t0006-negative-tz-offset:
t0006: add more tests with a negative TZ offset
-rwxr-xr-x | t/t0006-date.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t0006-date.sh b/t/t0006-date.sh index 1d228a981e..3031256d14 100755 --- a/t/t0006-date.sh +++ b/t/t0006-date.sh @@ -70,6 +70,14 @@ check_show 'format:%s' '123456789 +1234' 123456789 check_show 'format:%s' '123456789 -1234' 123456789 check_show 'format-local:%s' '123456789 -1234' 123456789 +# negative TZ offset +TIME='1466000000 -0200' +check_show iso8601 "$TIME" '2016-06-15 12:13:20 -0200' +check_show iso8601-strict "$TIME" '2016-06-15T12:13:20-02:00' +check_show rfc2822 "$TIME" 'Wed, 15 Jun 2016 12:13:20 -0200' +check_show default "$TIME" 'Wed Jun 15 12:13:20 2016 -0200' +check_show raw "$TIME" '1466000000 -0200' + # arbitrary time absurdly far in the future FUTURE="5758122296 -0400" check_show iso "$FUTURE" "2152-06-19 18:24:56 -0400" TIME_IS_64BIT,TIME_T_IS_64BIT |