zzz-pc-view 0.0.38 → 0.0.39
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.
- package/package.json +1 -1
- package/src/index.es.js +4 -1
- package/src/index.umd.js +1 -1
package/package.json
CHANGED
package/src/index.es.js
CHANGED
|
@@ -1022,6 +1022,9 @@ class ZDate extends Date {
|
|
|
1022
1022
|
} else {
|
|
1023
1023
|
lastResult[0] = Math.floor(lastResult[0]);
|
|
1024
1024
|
}
|
|
1025
|
+
results.forEach((result) => {
|
|
1026
|
+
result[0] = Math.floor(result[0]);
|
|
1027
|
+
});
|
|
1025
1028
|
let firstNotZeroIndex = results.findIndex((result) => result[0] >= 1);
|
|
1026
1029
|
if (firstNotZeroIndex === -1) {
|
|
1027
1030
|
firstNotZeroIndex = lastResultsIndex;
|
|
@@ -1037,7 +1040,7 @@ class ZDate extends Date {
|
|
|
1037
1040
|
for (let i = firstNotZeroIndex; i <= lastNotZeroIndex; i++) {
|
|
1038
1041
|
const result = results[i];
|
|
1039
1042
|
const { unit, pad } = result[1];
|
|
1040
|
-
const value =
|
|
1043
|
+
const value = result[0];
|
|
1041
1044
|
response2 += `${Number.isFinite(pad) ? value.toString().padStart(pad, "0") : value}${unit}`;
|
|
1042
1045
|
}
|
|
1043
1046
|
return response2;
|