提交 1adc4b9a 编写于 作者: U Urs Thuermann 提交者: Junio C Hamano

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: NUrs Thuermann <urs@isnogud.escape.de>
Reviewed-by: NEric Wong <e@80x24.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 cf8899d2
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册