ismx-nexo-node-app 0.4.143 → 0.4.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,7 @@ class NumberUtils {
|
|
|
7
7
|
static duration(seconds) {
|
|
8
8
|
if (seconds == null)
|
|
9
9
|
return null;
|
|
10
|
-
const truncated = Math.trunc(seconds);
|
|
10
|
+
const truncated = Math.trunc(seconds + 1);
|
|
11
11
|
const mins = Math.floor(truncated / 60);
|
|
12
12
|
const secs = truncated % 60;
|
|
13
13
|
const minsStr = mins.toString().padStart(2, '0');
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ export default abstract class NumberUtils {
|
|
|
8
8
|
static duration(seconds: null | undefined): null;
|
|
9
9
|
static duration(seconds: number | null | undefined): string | null {
|
|
10
10
|
if (seconds == null) return null;
|
|
11
|
-
const truncated = Math.trunc(seconds);
|
|
11
|
+
const truncated = Math.trunc(seconds+1);
|
|
12
12
|
const mins = Math.floor(truncated / 60);
|
|
13
13
|
const secs = truncated % 60;
|
|
14
14
|
const minsStr = mins.toString().padStart(2, '0');
|