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

Trying to use AUTHOR_DATE

From
tony.luck@intel.com <tony.luck@intel.com>
Date
Apr 29, 2005, 23:14 UTC
Message-ID
<200504292314.j3TNE1P23342@unix-os.sc.intel.com>

I'm using cogito-0.8 (036bb73c6dd1871101ca19557298684ab9832f81) and trying to set AUTHOR_DATE based on the "Date:" from the patch e-mail. But, it appears that commit-tree is munging this based on my timezone.

Here's what I set in the environment before invoking cg-commit:
  AUTHOR_DATE="29 Apr 2005 02:02:00 -0700"
and here's what cg-log reports on the "author" line:
  Fri, 29 Apr 2005 10:02:00 -0700

My /etc/localtime is set for "US/Pacific" ... which is where the 8 hours comes from (I think). If I set "TZ=GMT0BST" as well in the environment of cg-commit to override /etc/localtime, then the author time comes out ok, but then the "committer" time gets messed up.

-Tony
Next: H. Peter Anvin
Message 1 of 5 in “Trying to use AUTHOR_DATE”
  1. tony.luck@intel.comApr 29, 2005
  2. H. Peter AnvinApr 29, 2005
  3. tony.luck@intel.comApr 30, 2005
  4. Edgar ToernigApr 30, 2005
  5. H. Peter AnvinApr 30, 2005

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.