]> source.dussan.org Git - redmine.git/commitdiff
ruby1.9 compatibility
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Jan 2011 11:13:33 +0000 (11:13 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Jan 2011 11:13:33 +0000 (11:13 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4601 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/cvs_adapter.rb

index 47fac7a3de54ce49593a07ca79a49898d7740115..5ca9e74121545b78adf7ab62a102d4de0a74a47a 100644 (file)
@@ -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