fix show page postdate

This commit is contained in:
nccu 2014-12-29 16:09:44 +08:00
parent a43fd9f17f
commit f4ac65e58f
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class NewsController < ApplicationController
"department" => (department.name rescue ""),
"department-link" => "/#{I18n.locale.to_s + page.url}/?department=#{(department.to_param rescue "")}",
"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,
"image" => news.image.url,
"view_count" =>news.view_count