Re: git-2.13.0: log --date=format:%z not working
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 29, 2017, 00:53 UTC
- Message-ID
- <xmqqh904a3gt.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CACBZZX6zG0z90coXz_Xzqvdp+9LpJ4RE2dAJggfLL-nd0nkWVQ@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 11 quoted lines
>> >> Here are some links to past explorations: >> >> http://public-inbox.org/git/20160208152858.GA17226@sigill.intra.peff.net/ >> >> http://public-inbox.org/git/87vb2d37ea.fsf@web.de/ > > There's a third and possibly least shitty option that isn't covered in > those threads; We could just make a pass over the strftime format > ourselves and replace %z and %Z with the timezone (as done for > DATE_ISO8601_STRICT in date.c), then hand the rest off to strftime().
I do not know about %Z but certainly for %z that sounds the least bad.
In a nearby message René seems to have come up with the same idea, too ;-)