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/dist/esm/index.js
CHANGED
|
@@ -5654,7 +5654,10 @@ const getLocalTimeInfo = (dateOrTimestamp) => {
|
|
|
5654
5654
|
const day = d.getDate();
|
|
5655
5655
|
const hour = d.getHours();
|
|
5656
5656
|
const isPM = hour >= 12;
|
|
5657
|
-
|
|
5657
|
+
let hour12 = hour % 12;
|
|
5658
|
+
if (hour12 === 0) {
|
|
5659
|
+
hour12 = 12;
|
|
5660
|
+
}
|
|
5658
5661
|
const minute = d.getMinutes();
|
|
5659
5662
|
// Return
|
|
5660
5663
|
return {
|