admin: Fix activate timer

This commit is contained in:
nemunaire 2024-03-16 12:19:16 +01:00
commit 0ca7aa568d
3 changed files with 19 additions and 7 deletions

View file

@ -139,7 +139,9 @@ angular.module("FICApp")
res += Math.floor(input / 3600) + ":";
input = input % 3600;
}
if (input >= 60) {
if (res || input >= 60) {
if (res && Math.floor(input / 60) <= 9)
res += "0";
res += Math.floor(input / 60) + "'";
input = input % 60;
}