Defect #5378 » always-obey-date-format.diff
| lib/redmine/i18n.rb (working copy) | ||
|---|---|---|
|
end
|
||
|
|
||
|
def format_time(time, include_date = true)
|
||
|
(include_date ? "#{format_date(time)} " : "") + format_time_only(time)
|
||
|
end
|
||
|
def format_time_only(time)
|
||
|
return nil unless time
|
||
|
time = time.to_time if time.is_a?(String)
|
||
|
zone = User.current.time_zone
|
||
|
local = zone ? time.in_time_zone(zone) : (time.utc? ? time.localtime : time)
|
||
|
Setting.time_format.blank? ? ::I18n.l(local, :count => local.strftime('%d'), :format => (include_date ? :default : :time)) :
|
||
|
((include_date ? "#{format_date(time)} " : "") + "#{local.strftime(Setting.time_format)}")
|
||
|
Setting.time_format.blank? ? ::I18n.l(local, :count => local.strftime('%d'), :format => :time) : local.strftime(Setting.time_format)
|
||
|
end
|
||
|
def day_name(day)
|
||