mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
#11606, adds long time formatting for en.yml
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user