Update index.js
This commit is contained in:
parent
fe1fcdde3f
commit
863edfdeb9
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue