Revert english dates
This commit is contained in:
parent
9a824b0460
commit
8525761332
6 changed files with 8 additions and 86 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue