This commit is contained in:
bohung committed 2021-03-01 10:59:47 +08:00
1 parent 02808f0404
commit b254f99f2d
1 file changed
+1 -1
+1 -1
View File
@@ -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