1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-21 16:01:14 +00:00

add empty line after guard clause to lib/redmine/i18n.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20572 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-12-04 13:59:36 +00:00
parent 73b25dd2b4
commit 8cd42bc603

View File

@ -68,6 +68,7 @@ module Redmine
def format_date(date)
return nil unless date
options = {}
options[:format] = Setting.date_format unless Setting.date_format.blank?
::I18n.l(date.to_date, **options)
@ -75,6 +76,7 @@ module Redmine
def format_time(time, include_date=true, user=nil)
return nil unless time
user ||= User.current
options = {}
options[:format] = (Setting.time_format.blank? ? :time : Setting.time_format)