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

Localization: Timestamps get wrong if using different locales

From
CMChristoph Miebach <christoph.miebach@web.de>
Date
Aug 5, 2012, 09:08 UTC
Message-ID
<501E3828.40708@web.de>
Hello!

Running this commands locally (german locale) lead to some wrong dates for the patches upstream.

git format-patch -o patches origin

git send-email --compose --no-chain-reply-to --to some@address.com --suppress-cc=author patches/0001-l10n-Turkish-update.patch

The local
Date: Sat, 4 Aug 2012
became
       Wed, 8 Dec 2004
So it looks like matching  DD=04=YY  MM=08=DD  and  YY=12=MM
German date format usually looks DD.MM.YYYY
A workaround for me was running the lines with LANGUAGE=en

I am using git-send-email 1.7.10.4 with the patch from here http://www.mail-archive.com/git@vger.kernel.org/msg05240.html but I do not expect this to do any harm here.

Shall I provide more information?
Regards
Christoph
Next: Junio C Hamano
Message 1 of 3 in “Localization: Timestamps get wrong if using different locales”
  1. Christoph MiebachAug 5, 2012
  2. Junio C HamanoAug 5, 2012
  3. Christoph MiebachAug 11, 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.