Skip to content

Commit

Permalink
Merge branch 'ur/svn-local-zone'
Browse files Browse the repository at this point in the history
"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
  • Loading branch information
gitster committed Aug 22, 2017
2 parents 5c3895d + 1adc4b9 commit 716c469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl/Git/SVN.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 716c469

Please sign in to comment.