Project

General

Profile

Defect #36897 » Format_hours_edit.diff

Denis Yurashku, 2022-04-28 10:14

View differences:

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