[fix #3710] date with letter
Co-Authored-By: simon lehericey <mail@simon.lehericey.net>
This commit is contained in:
parent
d11e246112
commit
abcd58c35d
7 changed files with 62 additions and 9 deletions
|
@ -112,4 +112,12 @@ module ApplicationHelper
|
|||
root_path
|
||||
end
|
||||
end
|
||||
|
||||
def try_format_date(date)
|
||||
date.present? ? I18n.l(date) : ''
|
||||
end
|
||||
|
||||
def try_format_datetime(datetime)
|
||||
datetime.present? ? I18n.l(datetime) : ''
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue