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

Re: Date parsing

From
Stephan Beyer <s-beyer@gmx.net>
Date
Jun 21, 2008, 22:40 UTC
Message-ID
<20080621224042.GE15111@leksak.fem-net>
In-Reply-To
<alpine.LFD.1.10.0806211507370.2926@woody.linux-foundation.org>
Hi,

On Sat, Jun 21, 2008 at 03:28:56PM -0700, Linus Torvalds <torvalds@linux-foundation.org>: [...]

Show 6 quoted lines
>                 /* Be it commit time or author time, it does not make
>                  * sense to specify timestamp way into the future.  Make
>                  * sure it is not later than ten days from now...
>                  */
>                 if (now + 10*24*3600 < specified)
>                         return 0;
[...]

Great. So it really turns out that this bug is a nifty feature. (Except if we receive patches from the future with a numeric date format.)

Thanks for the explanation,
  Stephan
-- 
Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F
Previous: Linus Torvalds
Message 11 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.