[fix #3710] date with letter

Co-Authored-By: simon lehericey <mail@simon.lehericey.net>
This commit is contained in:
pedong 2019-04-10 15:49:13 +02:00 committed by Pierre de La Morinerie
parent d11e246112
commit abcd58c35d
7 changed files with 62 additions and 9 deletions

View file

@ -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