summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-07-14 14:53:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-07-14 14:53:18 +0000
commit05c18887038aad62bd1ec2a2b72c35ef05c28a38 (patch)
treec126acae4ff4b1b3c3d0b0f0d9f24227ef32daed /lib/redmine
parente94e88e3adec033b71c64ebfb0378a28ea1b0c33 (diff)
downloadredmine-05c18887038aad62bd1ec2a2b72c35ef05c28a38.tar.gz
redmine-05c18887038aad62bd1ec2a2b72c35ef05c28a38.zip
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
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/scm/adapters/subversion_adapter.rb6
1 files 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
})