From: Ben Walton Date: Sat, 28 Feb 2009 03:11:45 +0000 (-0500) Subject: git-svn - return original format_svn_date semantics X-Git-Tag: v1.6.2~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=736e619a1be92fcb6eac0155b51bc93d1dcc3157;p=git.git git-svn - return original format_svn_date semantics When %z was removed from the strftime call and subsituted with a local gmt offset calculation, time() was no longer the default for all time functions as it was with the previous localtime(shift). This is now corrected so that format_svn_time behaves as it used to. Signed-off-by: Ben Walton Acked-by: Eric Wong Signed-off-by: Junio C Hamano --- diff --git a/git-svn.perl b/git-svn.perl index a676a4c78..959eb52f3 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -4738,7 +4738,7 @@ sub run_pager { sub format_svn_date { # some systmes don't handle or mishandle %z, so be creative. - my $t = shift; + my $t = shift || time; my $gm = timelocal(gmtime($t)); my $sign = qw( + + - )[ $t <=> $gm ]; my $gmoff = sprintf("%s%02d%02d", $sign, (gmtime(abs($t - $gm)))[2,1]);