From 6361c05cd67ddccf92ef53a00266206c90d4657d Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Tue, 11 Jul 2023 13:05:06 -0400 Subject: [PATCH] Update appointment time check to not auto-fail for same-day --- src/store/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/index.js b/src/store/index.js index a40c7eaeb..315a424c2 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2189,6 +2189,7 @@ async function resetScheduleIfUnavailable(context, order) { // If you put any kind of time stamp on the date string with dashes, then it IS parsed as local time. var aptDate = new Date(order.schedule.date + "T00:00:00"); var curDate = new Date(); + curDate.setHours(0, 0, 0, 0); // if appointment date is in the past, clear schedule if (aptDate.getTime() < curDate.getTime()) {