remove localtime as it uses server timezone
This commit is contained in:
parent
9475795143
commit
3dad743d56
11 changed files with 15 additions and 15 deletions
|
@ -20,7 +20,7 @@ module CommentaireHelper
|
|||
def commentaire_date(commentaire)
|
||||
is_current_year = (commentaire.created_at.year == Date.current.year)
|
||||
template = is_current_year ? :message_date : :message_date_with_year
|
||||
I18n.l(commentaire.created_at.localtime, format: template)
|
||||
I18n.l(commentaire.created_at, format: template)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue