fix show page postdate
This commit is contained in:
parent
a43fd9f17f
commit
f4ac65e58f
|
@ -186,7 +186,7 @@ class NewsController < ApplicationController
|
||||||
"department" => (department.name rescue ""),
|
"department" => (department.name rescue ""),
|
||||||
"department-link" => "/#{I18n.locale.to_s + page.url}/?department=#{(department.to_param rescue "")}",
|
"department-link" => "/#{I18n.locale.to_s + page.url}/?department=#{(department.to_param rescue "")}",
|
||||||
"update_user" => update_user,
|
"update_user" => update_user,
|
||||||
"updated_at" => news.updated_at.strftime('%Y-%m-%d %H:%M'),
|
"updated_at" => news.postdate.strftime('%Y-%m-%d %H:%M'),
|
||||||
"body" => news.text == "" ? "Content unavailable for this language." : news.text,
|
"body" => news.text == "" ? "Content unavailable for this language." : news.text,
|
||||||
"image" => news.image.url,
|
"image" => news.image.url,
|
||||||
"view_count" =>news.view_count
|
"view_count" =>news.view_count
|
||||||
|
|
Loading…
Reference in New Issue