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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue