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