fix show page postdate

This commit is contained in:
nccu 2014-12-29 16:11:53 +08:00
parent 696046f792
commit e7b9e076cc
1 changed files with 1 additions and 1 deletions

View File

@ -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}",