Scheduling Issue: Incorrect Display of Available Days
Closed this issue · 1 comments
Issue for bug mentioned at https://groups.google.com/g/easy-appointments/c/_pqPjjkaazw/m/8Y6kSXk6BAAJ?utm_medium=email&utm_source=footer
If you live in a timezone that is - GMT then the booking calendar will offset the available days by one day earlier.
The problem is with line 341 in assets/js/http/booking_http_client.js
.
Change :
unavailableDates.map((unavailableDate) => new Date(unavailableDate)),
With:
unavailableDates.map((unavailableDate) => new Date(unavailableDate + 'T00:00')),
An explanation of what causes the issue and how to fix it can be found here:
https://stackoverflow.com/questions/39223481/incorrect-date-shown-in-new-date-in-javascript
PR will be done shortly.
Thanks! I just saw the group thread and merged that change manually.
This works like a charm!
Alex Tselegidis, Easy!Appointments Creator Need a customization? Get a free quote! |