From efe3a77cf5840ccaba6943473f855269bcd596d6 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 4 Aug 2017 15:46:27 +0800 Subject: [PATCH] fixed date for paper --- app/controllers/e_papers_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/e_papers_controller.rb b/app/controllers/e_papers_controller.rb index a076721..a11d8c4 100644 --- a/app/controllers/e_papers_controller.rb +++ b/app/controllers/e_papers_controller.rb @@ -66,6 +66,7 @@ class EPapersController < ApplicationController "period" => paper.period, "description" => paper.description, "category" => paper.category.title, + "publish_date" => paper.created_at.strftime("%Y-%m-%d"), "th_title" => t('e_paper.title'), "th_category" => t('category'), "th_period" => t('e_paper.period'),