Fix the parsing of unavailability dates so that those render correctly for all timezones (fix originating from the community support group)

This commit is contained in:
Alex Tselegidis 2024-11-05 13:03:07 +01:00
parent d58d9f7434
commit 29fb168a31

View file

@ -338,7 +338,7 @@ App.Http.Booking = (function () {
// Grey out unavailable dates.
$selectDate[0]._flatpickr.set(
'disable',
unavailableDates.map((unavailableDate) => new Date(unavailableDate)),
unavailableDates.map((unavailableDate) => new Date(unavailableDate + 'T00:00')),
);
if (setDate && !vars('manage_mode')) {