summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/redmine/scm/adapters/cvs_adapter.rb4
1 files 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)