Fix bug.
This commit is contained in:
1 parent
02808f0404
commit
b254f99f2d
1 file changed
+1
-1
@@ -84,7 +84,7 @@ module OrbitFormHelper
|
||||
end
|
||||
|
||||
def format_value(value, format = 'yyyy-MM-dd hh:mm')
|
||||
value.strftime(format.gsub('yyyy', '%Y').gsub('MM', '%m').gsub('dd', '%d').gsub('hh', 'h').gsub('HH','H').gsub('H', '%H').gsub('h', '%H').gsub('mm', '%M')) rescue ""
|
||||
value.strftime(format.gsub('yyyy', '%Y').gsub('MM', '%m').gsub('dd', '%d').gsub('hh', 'h').gsub('HH','H').gsub('H', '%H').gsub('h', '%H').gsub('mm', '%M')) rescue value.to_s
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user