Adjust time display

This commit is contained in:
Geomitron
2025-04-11 21:37:20 -04:00
parent 8dab57f0cb
commit 5b9cebad36
2 changed files with 3 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ export function instrumentToDiff(instrument: Instrument | 'vocals') {
export function msToRoughTime(ms: number) {
const seconds = _.floor((ms / 1000) % 60)
const minutes = _.floor((ms / 1000 / 60) % 60)
const hours = _.floor((ms / 1000 / 60 / 60) % 24)
const hours = _.floor(ms / 1000 / 60 / 60)
return `${hours ? `${hours}:` : ''}${minutes}:${_.padStart(String(seconds), 2, '0')}`
}