]> source.dussan.org Git - redmine.git/commitdiff
scm: cvs: strict string type and timezone in cvstime.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 15 Apr 2011 04:23:42 +0000 (04:23 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 15 Apr 2011 04:23:42 +0000 (04:23 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5460 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/cvs_adapter.rb

index 06ab1555f749627d47c97bab436fb7e2201051a8..94e868fbc1df3c7b383dfbd2eb0b2d3a93dfe924 100644 (file)
@@ -335,12 +335,12 @@ 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'
+          time = Time.now if time == 'HEAD'
 
           unless time.kind_of? Time
             time = Time.parse(time)
           end
-          return time.strftime("%Y-%m-%d %H:%M:%S")
+          return time_to_cvstime_rlog(time)
         end
 
         def time_to_cvstime_rlog(time)