]> git.ipfire.org Git - thirdparty/git.git/commit
date: make "iso-strict" conforming for the UTC timezone
authorBeat Bolli <bb@drbeat.li>
Wed, 13 Mar 2024 22:54:23 +0000 (23:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Mar 2024 23:06:52 +0000 (16:06 -0700)
commit69e2bee1a3ba2f9367d55992f401e6365be100ea
tree098c2899936b45d476ce04cd5cbf568dda388d9b
parent945115026aa63df4ab849ab14a04da31623abece
date: make "iso-strict" conforming for the UTC timezone

ISO 8601-1:2020-12 specifies that a zero timezone offset must be denoted
with a "Z" suffix instead of the numeric "+00:00". Add the correponding
special case to show_date() and a new test.

Changing an established output format which might be depended on by
scripts is always problematic, but here we choose to adhere more closely
to the published standard.

Reported-by: Michael Osipov <michael.osipov@innomotics.com>
Signed-off-by: Beat Bolli <dev+git@drbeat.li>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c
t/t0006-date.sh