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

Date parsing

From
SRSverre Rabbelier <alturin@gmail.com>
Date
Jun 10, 2008, 14:58 UTC
Message-ID
<bd6139dc0806100758xb41d08dh18e3051088b707e5@mail.gmail.com>
Heya,

I noticed that we parse GIT_COMMITTER_DATE="31-05-2008 11:30pm" as "31st of July at 23:30 +0200" whereas we parse GIT_COMMITTER_DATE="01-06-2008 11:30pm" as "6th of January at 23:30 +0100"

Not only is it strange that we accept both orders (since apparently we don't resort to the latter order unless the first digit > 12), but it's also weird that the timezone changes based on which option was chosen! What does the list think about this? Is this "normal" behavior? If not, what (if anything) should we do about it?

-- 
Cheers,

Sverre Rabbelier
Next: Johannes Sixt
Message 1 of 11 in “Date parsing”
  1. Sverre RabbelierJun 10, 2008
  2. Johannes SixtJun 10, 2008
  3. Sverre RabbelierJun 10, 2008
  4. Brandon CaseyJun 10, 2008
  5. Sverre RabbelierJun 10, 2008
  6. Linus TorvaldsJun 10, 2008
  7. Sverre RabbelierJun 10, 2008
  8. Stephan BeyerJun 21, 2008
  9. Linus TorvaldsJun 21, 2008
  10. Linus TorvaldsJun 21, 2008
  11. Stephan BeyerJun 21, 2008

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.