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