mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Fix datetime for movie
This commit is contained in:
parent
85d96b3388
commit
89c1afb926
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue