forked from External/greenlight
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:
@ -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
|
||||
|
Reference in New Issue
Block a user