There was an error while loading. Please reload this page.
1 parent 50cdf2f commit a0293a1Copy full SHA for a0293a1
1 file changed
site/frontend/src/utils/formatting.ts
@@ -4,7 +4,7 @@ import {PREF_DATETIME_FORMAT} from "../pages/compare/prefs";
4
5
// `time` has to be in seconds
6
export function formatSecondsAsDuration(time: number): string {
7
- let seconds = time % 60;
+ let seconds = Math.trunc(time % 60);
8
let mins = Math.trunc(time / 60);
9
let hours = Math.trunc(mins / 60);
10
mins -= hours * 60;
0 commit comments