diff --git a/app/controllers/session_controller.rb b/app/controllers/session_controller.rb index 19ab63823c5..ca1e4b24a3b 100644 --- a/app/controllers/session_controller.rb +++ b/app/controllers/session_controller.rb @@ -30,7 +30,7 @@ class SessionController < ApplicationController if @user.confirm_password?(params[:password]) if @user.is_banned? - render json: { error: I18n.t("login.banned", {date: I18n.l(@user.banned_till, format: :short_no_year)}) } + render json: { error: I18n.t("login.banned", {date: I18n.l(@user.banned_till, format: :date_only)}) } return end diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 3ee2b813579..954053debd3 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -13,6 +13,7 @@ en: formats: short: "%m-%d-%Y" short_no_year: "%B %-d" + date_only: "%b %-d, %Y" title: "Discourse" topics: "Topics"