fixed date for paper

This commit is contained in:
Harry Bomrah 2017-08-04 15:46:27 +08:00
parent 8aa68a455f
commit efe3a77cf5
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ class EPapersController < ApplicationController
"period" => paper.period, "period" => paper.period,
"description" => paper.description, "description" => paper.description,
"category" => paper.category.title, "category" => paper.category.title,
"publish_date" => paper.created_at.strftime("%Y-%m-%d"),
"th_title" => t('e_paper.title'), "th_title" => t('e_paper.title'),
"th_category" => t('category'), "th_category" => t('category'),
"th_period" => t('e_paper.period'), "th_period" => t('e_paper.period'),