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

@ -14,7 +14,7 @@ class Commentaire < ApplicationRecord
after_create :notify
def header
"#{sender}, #{I18n.l(created_at.localtime, format: '%d %b %Y %H:%M')}"
"#{sender}, #{I18n.l(created_at, format: '%d %b %Y %H:%M')}"
end
def sender