From 50fe1ecc1815f5734b1766d81cbe3fecb055bc5d Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 15 Apr 2011 04:23:42 +0000 Subject: [PATCH] scm: cvs: strict string type and timezone in cvstime. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5460 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/cvs_adapter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb index 06ab1555f..94e868fbc 100644 --- a/lib/redmine/scm/adapters/cvs_adapter.rb +++ b/lib/redmine/scm/adapters/cvs_adapter.rb @@ -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)