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

Re: Strange date format in git-send-email

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 5, 2006, 09:00 UTC
Message-ID
<e8fv2o$khv$1@sea.gmane.org>
In-Reply-To
<200607050817.37366.martijn.kuipers@lx.it.pt>
Martijn Kuipers wrote:
Show 15 quoted lines
> My email is sorted by date and a number of email-patches list the date format 
> as unknown (in kmail, that is).
> 
> When checking the headers of these mails I see the following pattern:
> 
> Date: mer, 05 jui 2006 00:36:08 +0200
> X-Mailer: git-send-email 1.4.1
> 
> Date: wto, 20 cze 2006 17:59:19 +0200
> X-Mailer: git-send-email 1.3.0
> 
> Date: Tue, Mar 14 12:12:35 2006 -0500
> User-Agent: send_patch 0.1
> 
> Date: Tue Feb 7 18:21:02 2006 +0100
[...]
> Is this my problem (or kmail), or is there something funny with 
> git-send-email? I just don't git it.

Yes, there was a problem with git-sen-email, namely it used strftime to print "Date:" header, but strftime is locale specific setting $ENV{LC_ALL} = 'C' is not enought.

There were two patches on the list: one hacky adding setlocale call (not applied), second implementing rfc-822 date in Perl. Should be in current.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Martijn KuipersNext: Junio C Hamano
Message 2 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.