Skip to content

Shorten hour part of duration

Most calls are less than an hour long, so the extra 00: at the start of durations like 00:01:23 results in visual clutter. This removes the hour portion of a duration if it is zero. It also removes the leading zero in the hour segment, so longer durations are displayed like 1:23:45 instead of 01:23:45. The leading zero isn't really needed here, since "hour" is already the last time segment that can be displayed.

Merge request reports