@propriety/court-calendar 1.0.53 → 1.0.54

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.mjs CHANGED
@@ -17981,7 +17981,7 @@ function ED({
17981
17981
  start: (() => {
17982
17982
  const [ae, Z, de] = be.split("-").map(Number), ve = new Date(ae, Z - 1, de);
17983
17983
  if (q.HearingTime) {
17984
- const [Te, Ee] = q.HearingTime.split(":").map(Number);
17984
+ const [Te, Ee] = q.HearingTime.replace(/\s*(AM|PM)$/i, "").split(":").map(Number);
17985
17985
  ve.setHours(Te, Ee, 0, 0);
17986
17986
  }
17987
17987
  return ve;
@@ -18009,7 +18009,7 @@ function ED({
18009
18009
  return z.length > 0 && z.every((J) => si(J, q)) ? [] : T.MultipleDates.filter(Boolean).map((J, Y) => {
18010
18010
  const Q = new Date(J);
18011
18011
  if (T.HearingTime) {
18012
- const [be, Me] = T.HearingTime.split(":").map(Number);
18012
+ const [be, Me] = T.HearingTime.replace(/\s*(AM|PM)$/i, "").split(":").map(Number);
18013
18013
  Q.setHours(be, Me, 0, 0);
18014
18014
  }
18015
18015
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@propriety/court-calendar",
3
3
  "private": false,
4
- "version": "1.0.53",
4
+ "version": "1.0.54",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -245,7 +245,7 @@ export function useCalendarEvents({
245
245
  const [y, m, d] = key.split('-').map(Number);
246
246
  const adjStart = new Date(y, m - 1, d);
247
247
  if (date.HearingTime) {
248
- const [h, min] = date.HearingTime.split(':').map(Number);
248
+ const [h, min] = date.HearingTime.replace(/\s*(AM|PM)$/i, '').split(':').map(Number);
249
249
  adjStart.setHours(h, min, 0, 0);
250
250
  }
251
251
  return adjStart;
@@ -281,7 +281,7 @@ export function useCalendarEvents({
281
281
  return date.MultipleDates.filter(Boolean).map((extraDate, index) => {
282
282
  const start = new Date(extraDate);
283
283
  if (date.HearingTime) {
284
- const [h, m] = date.HearingTime.split(':').map(Number);
284
+ const [h, m] = date.HearingTime.replace(/\s*(AM|PM)$/i, '').split(':').map(Number);
285
285
  start.setHours(h, m, 0, 0);
286
286
  }
287
287
  return {