Update index.js

This commit is contained in:
hiteshkumar87 2023-09-15 19:43:18 +05:30
parent fe1fcdde3f
commit 863edfdeb9

View file

@ -614,7 +614,7 @@ function getTimeSlotsAdditionalEventData(
) {
var numberOfDays = null;
if (firstAvailableAppointmentDateString)
numberOfDays = getDateDifferenceInDays(new Date(), firstAvailableAppointmentDateString);
numberOfDays = getDateDifferenceInDays(new Date().toISOString().split("T")[0], firstAvailableAppointmentDateString);
if (shopAppointmentType)
return `FirstAvailableAppointment:${numberOfDays},Zip:${zipCode},ShopAppointmentType:${shopAppointmentType},ProvisionalTriggers:${provisionalTriggers.join(