Fix datetime for movie

This commit is contained in:
Ari Timonen 2020-03-23 04:10:50 +02:00
parent 85d96b3388
commit 89c1afb926

View file

@ -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)