From 05c18887038aad62bd1ec2a2b72c35ef05c28a38 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 14 Jul 2007 14:53:18 +0000 Subject: [PATCH] Fix: SVN commit dates are now stored as local time git-svn-id: http://redmine.rubyforge.org/svn/trunk@587 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/subversion_adapter.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb index f58bdb13d..c0ccbc9d6 100644 --- a/lib/redmine/scm/adapters/subversion_adapter.rb +++ b/lib/redmine/scm/adapters/subversion_adapter.rb @@ -38,7 +38,7 @@ module Redmine info = Info.new({:root_url => doc.elements["info/entry/repository/root"].text, :lastrev => Revision.new({ :identifier => doc.elements["info/entry/commit"].attributes['revision'], - :time => Time.parse(doc.elements["info/entry/commit/date"].text), + :time => Time.parse(doc.elements["info/entry/commit/date"].text).localtime, :author => (doc.elements["info/entry/commit/author"] ? doc.elements["info/entry/commit/author"].text : "") }) }) @@ -76,7 +76,7 @@ module Redmine :size => (entry.elements['size'] and entry.elements['size'].text).to_i, :lastrev => Revision.new({ :identifier => entry.elements['commit'].attributes['revision'], - :time => Time.parse(entry.elements['commit'].elements['date'].text), + :time => Time.parse(entry.elements['commit'].elements['date'].text).localtime, :author => (entry.elements['commit'].elements['author'] ? entry.elements['commit'].elements['author'].text : "") }) }) @@ -115,7 +115,7 @@ module Redmine revisions << Revision.new({:identifier => logentry.attributes['revision'], :author => (logentry.elements['author'] ? logentry.elements['author'].text : ""), - :time => Time.parse(logentry.elements['date'].text), + :time => Time.parse(logentry.elements['date'].text).localtime, :message => logentry.elements['msg'].text, :paths => paths })