Correct the date parsing on Safari based browsers, while changing the month in the booking page
This commit is contained in:
parent
afdc1b839a
commit
0fdb1ffdae
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ App.Pages.Booking = (function () {
|
||||||
|
|
||||||
onMonthChange: (selectedDates, dateStr, instance) => {
|
onMonthChange: (selectedDates, dateStr, instance) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const displayedMonthMoment = moment(instance.currentYearElement.value + '-' + (Number(instance.monthsDropdownContainer.value) + 1) + '-01');
|
const displayedMonthMoment = moment(instance.currentYearElement.value + '-' + String(Number(instance.monthsDropdownContainer.value) + 1).padStart(2, '0') + '-01');
|
||||||
|
|
||||||
App.Http.Booking.getUnavailableDates(
|
App.Http.Booking.getUnavailableDates(
|
||||||
$selectProvider.val(),
|
$selectProvider.val(),
|
||||||
|
|
Loading…
Reference in a new issue