Make date configurable via locales (#997)

This commit is contained in:
kidhab 2023-06-10 10:31:22 +02:00 committed by GitHub
parent 64b99038e6
commit 075f3cfa1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 20 additions and 2 deletions

View file

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