diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-08-22 10:29:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-22 10:29:07 -0700 |
commit | 716c4699ce920ca4ae30da32c262c51a56e4c625 (patch) | |
tree | 07f1cb67acd508957278f5d14db78fbba952bb25 /perl | |
parent | 5c3895dfbd24a5ea23a8899ac40730359a6b2613 (diff) | |
parent | 1adc4b9a5886465adc71116b7ff2d5c320731e05 (diff) | |
download | git-716c4699ce920ca4ae30da32c262c51a56e4c625.tar.gz |
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
Diffstat (limited to 'perl')
-rw-r--r-- | perl/Git/SVN.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/Git/SVN.pm b/perl/Git/SVN.pm index 98518f4ddb..bc4eed3d75 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, |