From f4ac65e58ff12dcd34180cb246ea146f88ed4b61 Mon Sep 17 00:00:00 2001 From: nccu Date: Mon, 29 Dec 2014 16:09:44 +0800 Subject: [PATCH] fix show page postdate --- app/controllers/news_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index 510e74e..be56aeb 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -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