git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Busch <oliver.busch@arc-aachen.de>
To: git@vger.kernel.org
Subject: Bug report: Author/Commit date in ISO 8601 format
Date: Tue, 26 Aug 2014 09:29:44 +0200	[thread overview]
Message-ID: <53FC3768.3090905@arc-aachen.de> (raw)

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

             reply	other threads:[~2014-08-26  7:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-26  7:29 Oliver Busch [this message]
2014-08-26 13:06 ` Bug report: Author/Commit date in ISO 8601 format Jeff King
2014-08-26 13:14   ` Oliver Busch
2014-08-26 13:19   ` Oliver Busch
2014-08-26 13:33     ` Jeff King
2014-08-26 14:10       ` Jason Pyeron
2014-08-26 14:22         ` Jeff King
     [not found]           ` <CANgJU+UifjMJPcmC28-SrZOEUR45qQQfdM_rf-HHtkfBAMEyRw@mail.gmail.com>
2014-08-27  7:15             ` Oliver Busch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53FC3768.3090905@arc-aachen.de \
    --to=oliver.busch@arc-aachen.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).