fix translate second to second problem: formatTime function in utils/index.ts (#6)

This commit is contained in:
肉肉肉肉
2026-04-01 12:00:00 +08:00
committed by yz-yu
parent e3698d14b1
commit 07264d8011

View File

@@ -28,7 +28,7 @@ export function formatTime(ms) {
ms = ms % HOUR;
const minute = Math.floor(ms / MINUTE);
ms = ms % MINUTE;
const second = Math.round(ms / SECOND);
const second = Math.floor(ms / SECOND);
if (hour) {
return `${padZero(hour)}:${padZero(minute)}:${padZero(second)}`;
}