Re: [PATCH] Add date format --local-zone
- From
Junio C Hamano <junkio@cox.net>
- Date
- Apr 25, 2007, 19:59 UTC
- Message-ID
- <7vr6q8w7hd.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <alpine.LFD.0.98.0704250805440.9964@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 11 quoted lines
> On Wed, 25 Apr 2007, Linus Torvalds wrote:
>>
>> Ie, it would be better, I think, to use a
>>
>> --date=local
>> --date=relative
>> --date=UTC
>> ...
>>
>> kind of syntax, than have each date flag be different ("--relative-date"
>> vs "--local-zone"?).Probably.
> Btw, when you do "--local-zone", you should drop the TZ printout too, I > think. It doesn't seem to make any sense to give the *wrong* timezone.
I do not think the definition of "wrong" is so clear.
I would not disagree that showing the authordate in timezone the author was not in means --local-zone is showing a wrong zone, but "show timestamps in _my_ zone" is what the option is specifically asking for.
Originally I did it without timezone, but later I found it amusing to see "log --since=2007-03-10 --until=2007-03-12".
Note: in TZ=US/Pacific you would see -0700 and -0800 during the above commit-time range.