dce-reactkit 3.3.5 → 3.3.6
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
CHANGED
|
@@ -36,7 +36,10 @@ const getLocalTimeInfo = (dateOrTimestamp?: Date | number): {
|
|
|
36
36
|
const day = d.getDate();
|
|
37
37
|
const hour = d.getHours();
|
|
38
38
|
const isPM = hour >= 12;
|
|
39
|
-
|
|
39
|
+
let hour12 = hour % 12;
|
|
40
|
+
if (hour12 === 0) {
|
|
41
|
+
hour12 = 12;
|
|
42
|
+
}
|
|
40
43
|
const minute = d.getMinutes();
|
|
41
44
|
|
|
42
45
|
// Return
|