#11606, adds long time formatting for en.yml

This commit is contained in:
Ahmed Ejaz
2023-10-10 16:02:04 +05:00
committed by Konrad
parent dddb777cea
commit edc827bdc8
2 changed files with 4 additions and 2 deletions

View File

@@ -36,8 +36,7 @@ module Spree
end
def pretty_time(time)
[I18n.l(time.to_date, format: :long),
time.strftime("%l:%M %p")].join(" ")
I18n.l(time, format: :long)
end
end
end

View File

@@ -21,6 +21,9 @@
en:
# Overridden here due to a bug in spree i18n (Issue #870, and issue #1800)
language_name: "English" # Localised name of this language
time:
formats:
long: "%B %d, %Y%l:%M %p" # %l adds a single space to the left
activerecord:
models:
spree/product: Product