Fix Time formatting Function
This commit is contained in:
parent
c116aa8c47
commit
115d30dc67
1 changed files with 2 additions and 2 deletions
|
@ -139,8 +139,8 @@
|
|||
function displayTime(rawSeconds: number) {
|
||||
const intSeconds = rawSeconds.toFixed(0);
|
||||
const seconds = intSeconds % 60;
|
||||
const minutes = (intSeconds / 60).toFixed(0) % 60;
|
||||
const hours = (intSeconds / 360).toFixed(0);
|
||||
const minutes = Math.floor((intSeconds / 60)) % 60;
|
||||
const hours = Math.floor((intSeconds / 3600));
|
||||
|
||||
if (hours == 0) {
|
||||
return `${minutes.toString()}:${seconds.toString().padStart(2, 0)}`
|
||||
|
|
Loading…
Reference in a new issue