diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rb index 030c5caa7aa..e48a604f8c2 100644 --- a/app/mailers/user_notifications.rb +++ b/app/mailers/user_notifications.rb @@ -42,11 +42,10 @@ class UserNotifications < ActionMailer::Base end def short_date(dt) - current = Time.now - if dt.year == current.year - dt.strftime("%B #{dt.day.ordinalize}") + if dt.year == Time.now.year + I18n.l(dt, format: :short_no_year) else - dt.strftime("%B #{dt.day.ordinalize}, %Y") + I18n.l(dt, format: :short) end end