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

Re: [PATCH] do not use locale specific strftime when preparing 2822 date

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 7, 2006, 19:53 UTC
Message-ID
<e8me2l$8ur$1@sea.gmane.org>
In-Reply-To
<7vveq9w736.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 14 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
> 
>> It looks like it is _almost_ correct. It should be
>>   Date: Fri, 07 Jul 2006 20:57:55 +0200
>> instead of
>>   Date: Fri,  7 Jul 2006 20:57:55 +0200
>>
>> It is "day = ([FWS] 1*2DIGIT) / obs-day" in RFC2822.
> 
> I think you are reading ABNF wrong. [...]
> 
> See the definition of "hour" and friends a few lines below what
> you quoted.  It is defined as "2DIGIT / obs-hour" and that is
> why we say "01:23:45" not "1:23:45"
But it is "day = [...] 2DIGIT [...]"! 

Besides, that what other mailers do (I checked the post I replied via git-send-email to, i.e. your post). Although I don't think that it can cause any problems, like using locale date with non US-ASCII characters did...

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 9 in “Strange date format in git-send-email”
  1. Martijn KuipersJul 5, 2006
  2. Jakub NarebskiJul 5, 2006
  3. Junio C HamanoJul 5, 2006
  4. do not use locale specific strftime when preparing 2822 dateJakub Narebski, Jul 7, 2006
  5. Jakub NarebskiJul 7, 2006
  6. Junio C HamanoJul 7, 2006
  7. Jakub NarebskiJul 7, 2006
  8. Junio C HamanoJul 7, 2006
  9. Jakub NarebskiJul 7, 2006

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.