Fix strutil.secondsToTime().
This commit is contained in:
@@ -39,7 +39,7 @@ export function secondsToTime(seconds, fixedMin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let min = (Math.floor(seconds / 60) | 0) % 60;
|
let min = (Math.floor(seconds / 60) | 0) % 60;
|
||||||
let hours = Math.floor(seconds / 36000) | 0;
|
let hours = Math.floor(seconds / 3600) | 0;
|
||||||
|
|
||||||
if (fixedMin || hours > 0) {
|
if (fixedMin || hours > 0) {
|
||||||
min = min < 10 ? `0${min}` : min;
|
min = min < 10 ? `0${min}` : min;
|
||||||
|
|||||||
+1
-1
@@ -3331,7 +3331,7 @@ function secondsToTime(seconds, fixedMin) {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
let min = (Math.floor(seconds / 60) | 0) % 60;
|
let min = (Math.floor(seconds / 60) | 0) % 60;
|
||||||
let hours = Math.floor(seconds / 36000) | 0;
|
let hours = Math.floor(seconds / 3600) | 0;
|
||||||
if (fixedMin || hours > 0) {
|
if (fixedMin || hours > 0) {
|
||||||
min = min < 10 ? `0${min}` : min;
|
min = min < 10 ? `0${min}` : min;
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
@@ -4941,7 +4941,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||||
/* harmony export */ "PACKAGE_VERSION": () => (/* binding */ PACKAGE_VERSION)
|
/* harmony export */ "PACKAGE_VERSION": () => (/* binding */ PACKAGE_VERSION)
|
||||||
/* harmony export */ });
|
/* harmony export */ });
|
||||||
const PACKAGE_VERSION = "0.21.0";
|
const PACKAGE_VERSION = "0.21.1";
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user