fix/58-countdown

correct issues on countdown clock (#68)
This commit is contained in:
Carlos Valente
2021-12-16 22:13:41 +01:00
committed by GitHub
parent cd911aaaa2
commit 2751ed3d33
2 changed files with 28 additions and 2 deletions
+3 -1
View File
@@ -67,7 +67,9 @@ export class Timer {
// helpers
static toSeconds(millis) {
if (millis == null) return null;
return Math.floor(Math.max(millis * 0.001), 0);
return Math.ceil(millis * 0.001);
}
// get current time in epoc