Cap icon indicating copy to clipboard operation
Cap copied to clipboard

Times that round up to the next minute print as `:60` (`0:60.0`, `00:60.00`)

Open patrickballard opened this issue 1 month ago • 1 comments

Description

The desktop editor's timing cards and the web editor's playhead readout round the seconds on their own, after splitting off the minutes, so a time just under a minute boundary rounds up without carrying:

time timing cards (M:SS.s) web readout (MM:SS.ss)
59.96 s 0:60.0 00:59.96
59.996 s 0:60.0 00:60.00
119.97 s 1:60.0 01:59.97
3599.96 s 59:60.0 59:59.96

The timing cards show the start and end of zoom, scene, text and other segments, so any boundary dragged to within 0.05 s of a whole minute reads :60.0. The web readout needs to be within 0.005 s, so it's rarer.

The formatters are format_time in apps/desktop-gpui/src/editor_panels.rs and formatClockWithHundredths in apps/web/lib/player-time.ts (both touched by #3304 and #3305 for hours).

I've opened a PR for the timing cards, linked below. The web readout's fix changes the same function as #3305, so I'll open it once that merges.

patrickballard avatar Oct 26 '26 19:10 patrickballard

CAP-938

linear[bot] avatar Oct 26 '26 19:10 linear[bot]