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

Re: [PATCH] git svn fetch: Create correct commit timestamp when using --localtime

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 7, 2017, 22:08 UTC
Message-ID
<xmqqlgmvni8x.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<ygf8tiyx480.fsf@tehran.isnogud.escape.de>
Urs Thuermann <urs@isnogud.escape.de> writes:
Show 8 quoted lines
> In parse_svn_date() prepend the correct UTC offset to the timestamp
> returned.  This is the offset in effect at the commit time instead of
> the offset in effect at calling time.
>
> Signed-off-by: Urs Thuermann <urs@isnogud.escape.de>
> ---
>  perl/Git/SVN.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
Thanks; sounds sensible.  
Eric?
Show 14 quoted lines
>
> diff --git a/perl/Git/SVN.pm b/perl/Git/SVN.pm
> index 98518f4..bc4eed3 100644
> --- a/perl/Git/SVN.pm
> +++ b/perl/Git/SVN.pm
> @@ -1416,7 +1416,7 @@ sub parse_svn_date {
>  			delete $ENV{TZ};
>  		}
>  
> -		my $our_TZ = get_tz_offset();
> +		my $our_TZ = get_tz_offset($epoch_in_UTC);
>  
>  		# This converts $epoch_in_UTC into our local timezone.
>  		my ($sec, $min, $hour, $mday, $mon, $year,
Previous: Urs ThuermannNext: Eric Wong
Message 2 of 5 in “git svn fetch: Create correct commit timestamp when using --localtime”
  1. git svn fetch: Create correct commit timestamp when using --localtimeUrs Thuermann, Aug 5, 2017
  2. Junio C HamanoAug 7, 2017
  3. Eric WongAug 8, 2017
  4. Junio C HamanoAug 8, 2017
  5. Urs ThuermannAug 8, 2017

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.