Commentaire: use fr local to display date
This commit is contained in:
parent
030bdc86d6
commit
4c74b04a91
2 changed files with 54 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue