Internationalize date format (#2685)

* Changed view_date helper to use datetime format from i18n

* Removed German translation for date format, should be added via
transifex

Co-authored-by: Henning Schumann <henning.schumann@unicode-it.de>
Co-authored-by: Ahmad Farhat <ahmad.af.farhat@gmail.com>
This commit is contained in:
Henning
2021-06-08 00:32:18 +02:00
committed by GitHub
parent 75fd49aa7e
commit b61df09b94
2 changed files with 4 additions and 1 deletions

View File

@ -135,6 +135,6 @@ module ApplicationHelper
# Returns a more friendly/readable date time object
def view_date(date)
return "" if date.nil? # Handle invalid dates
local_time(date, "%b %d, %Y %-I:%M%P")
local_time(date, :default)
end
end