Make date configurable via locales (#997)
This commit is contained in:
parent
64b99038e6
commit
075f3cfa1a
8 changed files with 20 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ module ApplicationHelper
|
|||
include PathHelper
|
||||
|
||||
def format_time(time = Time.now)
|
||||
I18n.l(time, format: '%d.%m.%Y %H:%M') unless time.nil?
|
||||
I18n.l(time, format: :foodsoft_datetime) unless time.nil?
|
||||
end
|
||||
|
||||
def format_date(time = Time.now)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue