Fix display of formatDuration with rounding.
ClosedPublic

Authored by davidedmundson on Jul 6 2017, 8:16 PM.

Details

Summary

When showing the time (1 hour 59.5 minutes) with seconds hidden we
want to show "2 hours 0 minutes" not "1 hour 60 minutes".

This is fixed by performing the rounding before we split the number of
miliseconds into component parts, rather than splitting and then
rounding.

BUG: 360681
BUG: 382069

Test Plan

Updated unit test

Diff Detail

Repository
R244 KCoreAddons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson created this revision.Jul 6 2017, 8:16 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 6 2017, 8:16 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
dfaure accepted this revision.Jul 7 2017, 11:45 AM
This revision is now accepted and ready to land.Jul 7 2017, 11:45 AM
This revision was automatically updated to reflect the committed changes.