Commentaire: use fr local to display date

This commit is contained in:
Simon Lehericey 2017-04-18 17:33:24 +02:00
parent 030bdc86d6
commit 4c74b04a91
2 changed files with 54 additions and 1 deletions

View file

@ -7,7 +7,7 @@ class Commentaire < ActiveRecord::Base
after_save :internal_notification
def header
"#{email}, " + created_at.localtime.strftime('%d %b %Y %H:%M')
"#{email}, " + I18n.l(created_at.localtime, format: '%d %b %Y %H:%M')
end
private