We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4797e3f commit 7cbd6f8Copy full SHA for 7cbd6f8
src/helpers/DateTime.ts
@@ -7,6 +7,9 @@ function onlySecs(secs: number) {
7
}
8
9
export function msToTime(s: number, showSeconds: boolean = true) {
10
+ if (!s) {
11
+ return '0s';
12
+ }
13
const ms = s % 1000;
14
s = (s - ms) / 1000;
15
const secs = s % 60;
0 commit comments