mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 13:31:06 +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}")
|
str = eval("model.#{key}")
|
||||||
next if str == "" or str.nil?
|
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 << shorttime(str)
|
||||||
result << model[key].to_formatted_s(:long_ordinal)
|
result << model[key].to_formatted_s(:long_ordinal)
|
||||||
elsif element.instance_of?(Symbol)
|
elsif element.instance_of?(Symbol)
|
||||||
|
|
Loading…
Reference in a new issue