Defect #36897 » Format_hours.diff
| 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
|
||