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

Ambiguous date handling

From
Chris Packham <judge.packham@gmail.com>
Date
Sep 12, 2012, 09:35 UTC
Message-ID
<1347442551-7105-1-git-send-email-judge.packham@gmail.com>
Hi,

I think this has come up before [1],[2] but we ran into this at $dayjob today. Our default MUA has an annoying habit of using a non RFC822 date format when saving an email as plaintext. This means the first 12 days of every month we run into the ambiguous date problem (our date convention is dd/mm/yy).

I see code in date.c for refusing a date in the future which would have caught this but it doesn't appear to be working for us.

Following this is a patch adding a testcase for this. With the following results:

  ok 1 - apply patch with ambiguous date
  not ok 2 - check ambiguous date # TODO known breakage
  ok 3 - apply patch with european date separator
  ok 4 - check european date
  # still have 1 known breakage(s)
  # passed all remaining 3 test(s)
  1..4

Thanks, Chris

-- [1] - http://thread.gmane.org/gmane.comp.version-control.git/18412/focus=18417 [2] - http://thread.gmane.org/gmane.comp.version-control.git/84512/focus=85735

Next: Chris Packham
Message 1 of 5 in “Ambiguous date handling”
  1. Chris PackhamSep 12, 2012
  2. Add test for ambiguous patch datesChris Packham, Sep 12, 2012
  3. Junio C HamanoSep 12, 2012
  4. Chris PackhamSep 12, 2012
  5. Junio C HamanoSep 12, 2012

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.