From eaa2a9d01b37770b271c08de54c05530d195495f Mon Sep 17 00:00:00 2001 From: stratumadev Date: Thu, 2 Oct 2025 18:43:30 +0200 Subject: [PATCH] fixed formatTime comma seconds --- modules/module.helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/module.helper.ts b/modules/module.helper.ts index 41cc141..0d643dc 100644 --- a/modules/module.helper.ts +++ b/modules/module.helper.ts @@ -15,7 +15,7 @@ export default class Helper { const days = Math.floor(t / 86400); const hours = Math.floor((t % 86400) / 3600); const minutes = Math.floor(((t % 86400) % 3600) / 60); - const seconds = t % 60; + const seconds = +(t % 60).toFixed(0); const daysS = days > 0 ? `${days}d` : ''; const hoursS = daysS || hours ? `${daysS}${daysS && hours < 10 ? '0' : ''}${hours}h` : ''; const minutesS = minutes || hoursS ? `${hoursS}${hoursS && minutes < 10 ? '0' : ''}${minutes}m` : '';