@idds/react 1.5.9 → 1.5.10

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/index.es.js CHANGED
@@ -6049,7 +6049,7 @@ const TimePicker = forwardRef(
6049
6049
  const minutes = parseInt(parts[1] || "0", 10);
6050
6050
  const seconds = parseInt(parts[2] || "0", 10);
6051
6051
  if (use12Hours) {
6052
- const period = time.includes("AM") ? "AM" : "PM";
6052
+ const period = timeStr.includes("AM") ? "AM" : "PM";
6053
6053
  const hour12 = parseInt(time.replace(/[^\d]/g, ""), 10);
6054
6054
  const hours = hour12 === 12 ? 0 : hour12;
6055
6055
  return { hours, minutes, seconds, period };