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

Re: Wrong time in git-log when using right/ timezone

From
Julian Phillips <julian@quantumfyre.co.uk>
Date
Jul 18, 2007, 17:55 UTC
Message-ID
<Pine.LNX.4.64.0707181849060.1544@reaper.quantumfyre.co.uk>
In-Reply-To
<alpine.LFD.0.999.0707180948080.27353@woody.linux-foundation.org>
On Wed, 18 Jul 2007, Linus Torvalds wrote:
Show 15 quoted lines
> ie apparently Berlin is in a timezone of its own that is roughly one
> minute and 23 seconds away from CET.
>
> What the *heck*?
>
> I really don't think this is git that is confused: I get the exact same
> thing with "date" too:
>
> 	[torvalds@woody git]$ TZ=right/Europe/Berlin date ; TZ=CET date
> 	Wed Jul 18 18:52:25 CEST 2007
> 	Wed Jul 18 18:52:48 CEST 2007
>
> so it really *is* the tzdata that says that Berlin is not +0200, and it's
> not even +0159, it's something really strange with fractional minutes away
> from UTC.
Well ... not if you compare right/Europe/Berlin vs right/CET

jp3@neutron: ~>TZ=right/CET date '+%H:%M:%S %z'; TZ=right/Europe/Berlin date '+%H:%M:%S %z' 19:49:45 +0200 19:49:45 +0200

but, I suspect that the following is the underlying cause of the problem?

jp3@neutron: ~>TZ=right/UTC date '+%H:%M:%S %z'; TZ=UTC date '+%H:%M:%S %z' 17:51:32 +0000 17:51:55 +0000

Is git working internally in TZ=UTC?
-- 
Julian

  ---

Homer:	We always have one good kid and one lousy kid.  Why can't both
 	our kids be good?

Marge:	We have three kids, Homer.

 		   Separate Vacations
Previous: Linus TorvaldsNext: Linus Torvalds
Message 4 of 8 in “Wrong time in git-log when using right/ timezone”
  1. Peter HartlichJul 18, 2007
  2. Peter HartlichJul 18, 2007
  3. Linus TorvaldsJul 18, 2007
  4. Julian PhillipsJul 18, 2007
  5. Linus TorvaldsJul 18, 2007
  6. Alex RiesenJul 18, 2007
  7. Junio C HamanoJul 18, 2007
  8. Jan HudecJul 25, 2007

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.