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

Re: add UTC option for pretty-formats

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Nov 8, 2010, 08:41 UTC
Message-ID
<20101108084150.GB2430@burratino>
In-Reply-To
<AANLkTikN_B-bUTyy5440AVwTD=KkUWdkf_ukRszTuhYG@mail.gmail.com>
Hi Jeff,
Jeff Carr wrote:
Show 7 quoted lines
> --- a/Documentation/pretty-formats.txt
> +++ b/Documentation/pretty-formats.txt
> @@ -114,6 +114,7 @@ The placeholders are:
>  - '%ar': author date, relative
>  - '%at': author date, UNIX timestamp
>  - '%ai': author date, ISO 8601 format
> +- '%au': author date, UTC
Why not:
	TZ=UTC git log --format=%ad --date=local
or something like:
	git log --format=%AD(rfc2822,tz=UTC)

? In other words, why should we provide this feature with date=rfc dates and not date=iso ones?

Previous: Jeff Carr
Message 2 of 2 in “add UTC option for pretty-formats”
  1. Jeff CarrOct 27, 2010
  2. Jonathan NiederNov 8, 2010

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.