Closed DJtheRedstoner closed 1 year ago
Good catch and thanks for the PR! I think your solution would be effective, but I think we can do this more accurately with less processing with something like this:
minutes, seconds = divmod(round(seconds), 60)
hours, minutes = divmod(minutes, 60)
rtn = u'%02d:%02d' % (minutes, seconds)
That's a better approach, thanks.
Patch coverage: 100.00%
and no project coverage change.
Comparison is base (
99f500d
) 100.00% compared to head (2ddc168
) 100.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Previously, partial seconds could sometimes be rounded up by the formatter resulting in "XX:60" being displayed briefly. If we always round down first, we can avoid this.