diff --git a/assets/js/frontend_book_api.js b/assets/js/frontend_book_api.js index 7593c82c..f544011b 100755 --- a/assets/js/frontend_book_api.js +++ b/assets/js/frontend_book_api.js @@ -99,6 +99,10 @@ window.FrontendBookApi = window.FrontendBookApi || {}; var availableHourMoment = moment .tz(selectedDate + ' ' + availableHour + ':00', providerTimezone) .tz(selectedTimezone); + + if (availableHourMoment.format('YYYY-MM-DD') !== selectedDate) { + return; // Due to the selected timezone the available hour belongs to another date. + } $('#available-hours').append( $('