From 89c1afb92664517232f3ccb9c558b7815849909c Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Mon, 23 Mar 2020 04:10:50 +0200 Subject: [PATCH] Fix datetime for movie --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)