summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-09-10 08:02:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-10 08:02:52 (GMT)
commite0d52ec4abaefb48073d7c2f2a63f2cb1baf8e72 (patch)
tree7da53c93e7179e26b586e717889999f1571d1b6f /perl
parent00fd0afefd6b2a37497141d1d2a0d95210806406 (diff)
parent1adc4b9a5886465adc71116b7ff2d5c320731e05 (diff)
downloadgit-e0d52ec4abaefb48073d7c2f2a63f2cb1baf8e72.zip
git-e0d52ec4abaefb48073d7c2f2a63f2cb1baf8e72.tar.gz
git-e0d52ec4abaefb48073d7c2f2a63f2cb1baf8e72.tar.bz2
Merge branch 'ur/svn-local-zone' into maint
"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
Diffstat (limited to 'perl')
-rw-r--r--perl/Git/SVN.pm2
1 files changed, 1 insertions, 1 deletions
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,