git svn fetch: Create correct commit timestamp when using --localtime

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> Reviewed-by: Eric Wong <e@80x24.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Urs Thuermann committed Aug 5, 2017 at 02:12 UTC 1adc4b9a5886465adc71116b7ff2d5c320731e05
1 file changed +1 -1
perl/Git/SVN.pm
+1 -1
@@ -1416,7 +1416,7 @@ sub parse_svn_date {
1416 delete $ENV{TZ};
1417 }
1418
1419 - my $our_TZ = get_tz_offset();
1419 + my $our_TZ = get_tz_offset($epoch_in_UTC);
1420
1421 # This converts $epoch_in_UTC into our local timezone.
1422 my ($sec, $min, $hour, $mday, $mon, $year,