scm: cvs: fix age column on repository view is off by timezone delta (#7827).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5088 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-03-11 04:19:33 +00:00
parent 651976eebd
commit 732ee35b2f
2 changed files with 19 additions and 1 deletions
+11 -1
View File
@@ -107,6 +107,16 @@ module Redmine
fields = line.chop.split('/',-1)
logger.debug(">>InspectLine #{fields.inspect}")
if fields[0]!="D"
time = nil
# Thu Dec 13 16:27:22 2007
time_l = fields[-3].split(' ')
if time_l.size == 5 && time_l[4].length == 4
begin
time = Time.parse(
"#{time_l[1]} #{time_l[2]} #{time_l[3]} GMT #{time_l[4]}")
rescue
end
end
entries << Entry.new(
{
:name => fields[-5],
@@ -118,7 +128,7 @@ module Redmine
{
:revision => fields[-4],
:name => fields[-4],
:time => Time.parse(fields[-3]),
:time => time,
:author => ''
})
})