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

Bug report: Author/Commit date in ISO 8601 format

From
OBOliver Busch <oliver.busch@arc-aachen.de>
Date
Aug 26, 2014, 07:29 UTC
Message-ID
<53FC3768.3090905@arc-aachen.de>
Dear git community,

I encountered the following problem: When using the date formatting option ISO (either by setting --date=iso or using format:%ci for the committer date), the output is formatted like this:

2014-08-25 17:49:43 +0200

But according to ISO 8601, should be formatted like this (see http://www.w3.org/TR/NOTE-datetime):

2014-08-25T17:49:43+02:00

This difference makes it impossible to use automated string conversion (in my case, I tried to use Delphi's XSBuildIns (http://wiert.me/2011/07/19/iso-8601-delphi-way-to-convert-xml-date-and-time-to-tdatetime-and-back-via-stack-overflow/), which converted git's output "2014-08-25 17:49:43 +0200" to a TDateTime of "2014-08-25 02:00:00"; conversion worked correctly when using "2014-08-25T17:49:43+02:00" as input).

I therefore suggest to adapt the output when using --date=iso or format:%ci to comply 100% with the ISO 8601 specs, or at least change documentation to say the output is only "ISO-like".

Kind regards,
Oliver Busch
-- 
Oliver Busch, M.Eng.

Airport Research Center GmbH
Bismarckstraße 61
52066 Aachen
Germany

Phone: +49 241 16843-161
Fax: +49 241 16843-19
e-mail: Oliver.Busch@arc-aachen.de
Website: http://www.airport-consultants.com

Register Court: Amtsgericht Aachen HRB 7313
Ust-Id-No.: DE196450052

Managing Directors:
Dipl.-Ing. Tom Alexander Heuer
Next: Jeff King
Message 1 of 8 in “Bug report: Author/Commit date in ISO 8601 format”
  1. Oliver BuschAug 26, 2014
  2. Jeff KingAug 26, 2014
  3. Oliver BuschAug 26, 2014
  4. Oliver BuschAug 26, 2014
  5. Jeff KingAug 26, 2014
  6. Jason PyeronAug 26, 2014
  7. Jeff KingAug 26, 2014
  8. Oliver BuschAug 27, 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.