Skip to content

Commit

Permalink
-SIPC-/time: fix format time block (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkPool-SP authored Mar 26, 2024
1 parent 796b7c0 commit b6fd9fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions/-SIPC-/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,11 @@
? Math.round(totalSeconds % 60)
.toString()
.padStart(2, "0")
: (totalSeconds % 60).toFixed(3);
const minutes = Math.round((totalSeconds / 60) % 60)
: (totalSeconds % 60).toFixed(3).padStart(6, "0");
const minutes = Math.floor((totalSeconds / 60) % 60)
.toString()
.padStart(2, "0");
const hours = Math.round(totalSeconds / 3600)
const hours = Math.floor(totalSeconds / 3600)
.toString()
.padStart(2, "0");
return `${hours}:${minutes}:${seconds}`;
Expand Down

0 comments on commit b6fd9fa

Please sign in to comment.