date strftime fixed

This commit is contained in:
Harry Bomrah 2017-08-04 15:51:42 +08:00
parent efe3a77cf5
commit 15ab527f37
1 changed files with 3 additions and 3 deletions

View File

@ -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'),