We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c90810 + a0293a1 commit 8ee2ffbCopy full SHA for 8ee2ffb
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