From 15ab527f37d3225984d89feeda8da4d017ca18af Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 4 Aug 2017 15:51:42 +0800 Subject: [PATCH] date strftime fixed --- app/controllers/e_papers_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/e_papers_controller.rb b/app/controllers/e_papers_controller.rb index a11d8c4..dd82d52 100644 --- a/app/controllers/e_papers_controller.rb +++ b/app/controllers/e_papers_controller.rb @@ -16,7 +16,7 @@ class EPapersController < ApplicationController "episode" => topic.episode, "content" => topic.content, - "publish_date" => topic.created_at.strftime('%Y-%m-%d') + "publish_date" => topic.created_at } end @@ -57,7 +57,7 @@ class EPapersController < ApplicationController "episode" => topic.episode, "content" => topic.content, "description" => desc[0..100], - "publish_date" => topic.created_at.strftime("%Y-%m-%d") + "publish_date" => topic.created_at } end { @@ -66,7 +66,7 @@ class EPapersController < ApplicationController "period" => paper.period, "description" => paper.description, "category" => paper.category.title, - "publish_date" => paper.created_at.strftime("%Y-%m-%d"), + "publish_date" => paper.created_at, "th_title" => t('e_paper.title'), "th_category" => t('category'), "th_period" => t('e_paper.period'),