diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index dc5bb0f..37831ab 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -97,7 +97,7 @@ module ApplicationHelper str = eval("model.#{key}") next if str == "" or str.nil? - if model[key].instance_of?(Time) + if model[key].instance_of?(Time) or model[key].instance_of?(ActiveSupport::TimeWithZone) # result << shorttime(str) result << model[key].to_formatted_s(:long_ordinal) elsif element.instance_of?(Symbol)