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

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

From
YYuri <yuri@rawbw.com>
Date
Jan 18, 2014, 00:11 UTC
Message-ID
<52D9C69C.2020006@rawbw.com>
Currently git log mixes timezones in the date records in the same log, 
so the following dates wold appear in one log:
Date:   Thu Jan 16 17:11:28 2014 -0800
Date:   Thu Jan 16 20:10:04 2014 -0500

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.

Even further, timezone shouldn't even be stored by the git server. It should just store the UTC time, following the approach how time is managed in most UNIX-like systems.

Yuri
Next: Jonathan Nieder
Message 1 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.