You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the file it's assets/js/http/booking_http_client.js
on function applyUnavailableDates the code goes // Grey out unavailable dates. $selectDate[0]._flatpickr.set( 'disable', unavailableDates.map((unavailableDate) => new Date(unavailableDate)), );
when graying out unavailable dates on booking, the dates are mapped on UTC, and that causes issues for negative timezones
The text was updated successfully, but these errors were encountered:
I noticed this specifically in the -5 time zone (America/Havana)
I was working in the early morning and noticed that the json that gives the list of blocked dates was giving the previous day, but the calendar was not blocking it.
and when you see the code I sent, notice that the method it uses is that you map the dates that come in as string to date objects, and in the process the object is created in UTC
the file it's assets/js/http/booking_http_client.js
on function applyUnavailableDates the code goes
// Grey out unavailable dates. $selectDate[0]._flatpickr.set( 'disable', unavailableDates.map((unavailableDate) => new Date(unavailableDate)), );
when graying out unavailable dates on booking, the dates are mapped on UTC, and that causes issues for negative timezones
The text was updated successfully, but these errors were encountered: