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

Re: Date format in 'git log' should be in local timezone

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 18, 2014, 00:28 UTC
Message-ID
<20140118002848.GC18964@google.com>
In-Reply-To
<52D9C69C.2020006@rawbw.com>
Hi,
Yuri wrote:
> Timezone here doesn't help the log reader at all. It doesn't even
> reflect the actual location of the submitter. Instead, it should be
> converted to the local TZ of the client. This will make it easier to
> read and understand the time.

Does "git log --date=local" or "git log --date=relative" do what you're looking for?

If so, you can set that permanently by setting 'date = local' or 'date = relative' in the [log] section of your ~/.gitconfig. See log.date in the git-config(1) manpage for details.

I wonder if 'date = relative' would make a better default.
> Even further, timezone shouldn't even be stored by the git server.

I've found it very useful and would consider that a regression, at least.

Thanks and hope that helps, Jonathan

Previous: Yuri
Message 2 of 2 in “Date format in 'git log' should be in local timezone”
  1. YuriJan 18, 2014
  2. Jonathan NiederJan 18, 2014

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.