@@ -283,6 +283,8 module Redmine | |||||
283 | # convert a date/time into the CVS-format |
|
283 | # convert a date/time into the CVS-format | |
284 | def time_to_cvstime(time) |
|
284 | def time_to_cvstime(time) | |
285 | return nil if time.nil? |
|
285 | return nil if time.nil? | |
|
286 | return Time.now if time == 'HEAD' | |||
|
287 | ||||
286 | unless time.kind_of? Time |
|
288 | unless time.kind_of? Time | |
287 | time = Time.parse(time) |
|
289 | time = Time.parse(time) | |
288 | end |
|
290 | end |
General Comments 0
You need to be logged in to leave comments.
Login now