Commit 97485674 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

ruby1.9 compatibility

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4601 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent d3a926df
......@@ -283,6 +283,8 @@ module Redmine
# convert a date/time into the CVS-format
def time_to_cvstime(time)
return nil if time.nil?
return Time.now if time == 'HEAD'
unless time.kind_of? Time
time = Time.parse(time)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment