Thread (9 messages) flat view 9 messages, 6 authors, 2016-06-15

Re: [PATCH] Add date format --local-zone

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:07

Linus Torvalds [off-list ref] writes:
On Wed, 25 Apr 2007, Linus Torvalds wrote:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help