date strftime fixed
This commit is contained in:
parent
efe3a77cf5
commit
15ab527f37
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue