Comment 4 for bug 928220

Revision history for this message
Gautam (gditerp) wrote :

Hi,
Just want to add something more, when the field of a float_time widget is being rendered with a negative number, it is using a floor to calculate the whole number portion, so if it has to render -7.75, the outcome is -8.-45.
(taken from formats.js)

        case 'float_time':
            return _.str.sprintf("%02d:%02d",
                    Math.floor(value),
                    Math.round((value % 1) * 60));