Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin calendar doesn't show the booking for the last day of the month (if the last day of the month is also the "last day of the week" and the booking spans across months) #271

Open
2 tasks
anant1811 opened this issue Jan 15, 2021 · 0 comments
Labels
type: bug The issue is a confirmed bug.

Comments

@anant1811
Copy link

Affected ticket(s)

3651459-zen

Admin calendar doesn't show the booking for the last day of the month (if the last day of the month is also the "last day of the week" and the booking spans across months)

If a booking starts on the last day of month, and that day is also the last day of the week, and the bookings end in the next month, that booking is not visible in the monthly view of the month when the booking starts.
For example, in our WP settings the last day of a week is Sunday. The last day of January is a Sunday. If a booking starts on the 31st of January and ends in February, the booking is not visible in the monthly calendar view for January. It is however visible when viewing the monthly calendar view for February.

https://d.pr/i/GO6VN9
Full Size: https://d.pr/i/GO6VN9

The booking shows for the first day of the next month though:
https://d.pr/i/Y8reoz
Full Size: https://d.pr/i/Y8reoz

What I expected

The booking to show on the last day of the month as well.

What happened instead

Booking didn't show on the last day of the month.

Steps to reproduce the issue

  • Go to Settings > General. Ensure that "Week starts on" is see to Monday (We'll use Jan 2021 for testing, an Jan 31 is on Sunday).
  • Create an accommodation product
  • Book the product for dates starring at 31st Jan and going into Feb (Let's say from 31st Jan to 4th Feb)
  • Go to Bookings > Calendar, you will see that the booking doesn't show for 31st Jan

  • Issue assigned to next milestone.
  • Issue assigned a priority (will be assessed by maintainers).
@anant1811 anant1811 added the type: bug The issue is a confirmed bug. label Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

1 participant