Skip to content

Commit 716c469

Browse files
committed
Merge branch 'ur/svn-local-zone'
"git svn" used with "--localtime" option did not compute the tz offset for the timestamp in question and instead always used the current time, which has been corrected. * ur/svn-local-zone: git svn fetch: Create correct commit timestamp when using --localtime
2 parents 5c3895d + 1adc4b9 commit 716c469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perl/Git/SVN.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ sub parse_svn_date {
14161416
delete $ENV{TZ};
14171417
}
14181418

1419-
my $our_TZ = get_tz_offset();
1419+
my $our_TZ = get_tz_offset($epoch_in_UTC);
14201420

14211421
# This converts $epoch_in_UTC into our local timezone.
14221422
my ($sec, $min, $hour, $mday, $mon, $year,

0 commit comments

Comments
 (0)