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 | 1f49f7506f0d840e048ba78f7e0544c407568b58 (patch) | |
| tree | b254e46742e5f63bced8f1ff9007df9d199f5699 /t | |
| parent | Merge branch 'jw/doc-show-untracked-files-fix' (diff) | |
| parent | date: make "iso-strict" conforming for the UTC timezone (diff) | |
| download | git-1f49f7506f0d840e048ba78f7e0544c407568b58.tar.gz git-1f49f7506f0d840e048ba78f7e0544c407568b58.zip | |
Merge branch 'bb/iso-strict-utc'
The output format for dates "iso-strict" has been tweaked to show
a time in the Zulu timezone with "Z" suffix, instead of "+00:00".
* bb/iso-strict-utc:
date: make "iso-strict" conforming for the UTC timezone
Diffstat (limited to 't')
| -rwxr-xr-x | t/t0006-date.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t0006-date.sh b/t/t0006-date.sh index e18b160286..1d228a981e 100755 --- a/t/t0006-date.sh +++ b/t/t0006-date.sh @@ -46,6 +46,7 @@ check_show () { TIME='1466000000 +0200' check_show iso8601 "$TIME" '2016-06-15 16:13:20 +0200' check_show iso8601-strict "$TIME" '2016-06-15T16:13:20+02:00' +check_show iso8601-strict "$(echo "$TIME" | sed 's/+0200$/+0000/')" '2016-06-15T14:13:20Z' check_show rfc2822 "$TIME" 'Wed, 15 Jun 2016 16:13:20 +0200' check_show short "$TIME" '2016-06-15' check_show default "$TIME" 'Wed Jun 15 16:13:20 2016 +0200' |
