Project

General

Profile

Defect #36897 » Format_hours.diff

Denis Yurashku, 2022-04-05 14:30

View differences:

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