git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Linus TorvaldsNext: Alex Riesen
Message 6 of 12 in “Add date format --local-zone”
  1. Add date format --local-zoneJunio C Hamano, Apr 25, 2007
  2. Shawn O. PearceApr 25, 2007
  3. Johannes SchindelinApr 25, 2007
  4. Linus TorvaldsApr 25, 2007
  5. Linus TorvaldsApr 25, 2007
  6. Junio C HamanoApr 25, 2007
  7. Alex RiesenApr 25, 2007
  8. Junio C HamanoApr 25, 2007
  9. Alex RiesenApr 25, 2007
  10. Junio C HamanoApr 25, 2007
  11. 1/2 Add --date={local,relative,default}Junio C Hamano, Apr 26, 2007
  12. David KågedalApr 26, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.