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

[PATCH] Documentation/git svn log: add a note about timezones.

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Feb 27, 2008, 12:29 UTC
Message-ID
<20080227122929.GS31441@genesis.frugalware.org>
In-Reply-To
<alpine.LSU.1.00.0802271039220.22527@racer.site>

git svn log mimics the timezone converting behaviour of svn log, but this was undocumented.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
On Wed, Feb 27, 2008 at 10:40:37AM +0000, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 9 quoted lines
> Note: if all you want is such a strange behaviour as svn's (I mean, why
> does it insist to show the dates as if they were done in _your_
> timezone?):
>
>       git log --date=local
>
> > Is it documented anywhere?
>
> AFAICT it waits to be written.  By you.
something like this?
 Documentation/git-svn.txt |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 340f1be..e1babf3 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -160,6 +160,10 @@ New features:
 --
 +
 Any other arguments are passed directly to `git log'
++
+NOTE: SVN itself only stores times in UTC and nothing else. The regular svn
+client converts the UTC time to the local time (or based on the TZ=
+environment). This command has the same behaviour.
 
 'blame'::
        Show what revision and author last modified each line of a file. This is
-- 
1.5.4
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 5 of 11 in “git-svn messing with timezones”
  1. Tim StoakesFeb 26, 2008
  2. Eric WongFeb 27, 2008
  3. Tim StoakesFeb 27, 2008
  4. Johannes SchindelinFeb 27, 2008
  5. Documentation/git svn log: add a note about timezones.Miklos Vajna, Feb 27, 2008
  6. Johannes SchindelinFeb 27, 2008
  7. Documentation/git svn log: add a note about timezones.Miklos Vajna, Feb 27, 2008
  8. Johannes SchindelinFeb 27, 2008
  9. Tim StoakesFeb 27, 2008
  10. Junio C HamanoFeb 27, 2008
  11. Seth FalconFeb 27, 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.