Revert english dates

This commit is contained in:
Mathieu Magnin 2019-04-02 14:38:47 +02:00
parent 9a824b0460
commit 8525761332
6 changed files with 8 additions and 86 deletions

View file

@ -119,20 +119,4 @@ module ApplicationHelper
{}
end
end
def try_format_date(date)
begin
date.is_a?(String) ? Date.parse(date).strftime("%d %B %Y") : date.strftime("%d %B %Y")
rescue
date
end
end
def try_format_datetime(datetime)
begin
datetime.is_a?(String) ? Time.zone.parse(datetime).strftime("%d %B %Y %R") : datetime.strftime("%d %B %Y %R")
rescue
datetime
end
end
end