mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-21 22:15:40 +00:00
a7a3148949
* fix(format): round human duration totals to the nearest minute The Phase L dedup refactor folded the old `formatAlbumDuration` helper into `formatHumanHoursMinutes`, but the shared version truncated seconds to whole minutes instead of rounding. Aggregate duration labels (album, playlist, total playtime) could read up to ~59 s short and flip the hour boundary the wrong way — a 59:30 total showed "59 m" instead of "1 h 0 m". Restore the round-to-nearest-minute behaviour (and the negative-input clamp) the helper had before the consolidation. Adds a test pinning the rounding and the hour-boundary roll-up so it can't regress again. * docs(changelog): add human-duration rounding fix under Fixed (#710)