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

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

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 25, 2007, 06:44 UTC
Message-ID
<20070425064451.GF5942@spearce.org>
In-Reply-To
<1177482982542-git-send-email-junkio@cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 9 quoted lines
> This adds --local-zone option to log family of commands, to
> display timestamps in user's local timezone.
> 
> Signed-off-by: Junio C Hamano <junkio@cox.net>
> ---
> 
>  * I got tired of looking at +0000 timestamps on commits
>    imported from CVS at day-job.  Does not seem to break
>    existing tests, but I am not sure if this is useful.

Not only is it useful, I'd like to see a way to make it my default! (By my default here I mean a .gitconfig thing that I can set, but not making it the git out-of-the-box default.)

I don't like looking at timestamps in other people's timezones. If git-log is going to go through the motions of performing unicode translations for my tty, and indent messages, and convert the epoch seconds to a human readable date, it most certainly can be nice and put the times into my default frame of reference. Which is whatever my congresscritters have decided the time is this month... ;-)

-- 
Shawn.
Previous: Junio C HamanoNext: Johannes Schindelin
Message 2 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.