Project

General

Profile

Defect #36897 » Format_hours_edit.diff

Denis Yurashku, 2022-04-28 10:14

View differences:

lib/redmine/i18n.rb (working copy)
if Setting.timespan_format == 'minutes'
h = hours.floor
m = ((hours - h) * 60).round
if m == 60
h += 1
m = 0
end
"%d:%02d" % [ h, m ]
else
"%.2f" % hours.to_f
(3-3/6)