Skip to content

Commit

Permalink
Fix the parsing of unavailability dates so that those render correctl…
Browse files Browse the repository at this point in the history
…y for all timezones (fix originating from the community support group)
  • Loading branch information
alextselegidis committed Nov 5, 2024
1 parent d58d9f7 commit 29fb168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/http/booking_http_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 29fb168

Please sign in to comment.