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()) {