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