remove localtime as it uses server timezone

This commit is contained in:
simon lehericey 2018-10-25 20:25:43 +00:00
parent 9475795143
commit 3dad743d56
11 changed files with 15 additions and 15 deletions

View file

@ -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