From e7b9e076cc5f607e516faa211222e395823c761d Mon Sep 17 00:00:00 2001 From: nccu Date: Mon, 29 Dec 2014 16:11:53 +0800 Subject: [PATCH] fix show page postdate --- app/controllers/announcements_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 482cd8f..3835a9c 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -203,7 +203,7 @@ class AnnouncementsController < ApplicationController "title" => announcement.title, "categories-title" => t("announcement.categories"), "update_user" => update_user, - "updated_at" => announcement.updated_at.strftime('%Y-%m-%d %H:%M'), + "updated_at" => announcement.postdate.strftime('%Y-%m-%d %H:%M'), "body" =>announcement.text, "image" => announcement.image.url, "dept_link" => "/#{I18n.locale.to_s + page.url}/?unit=#{announcement.cache_dept}",