Overlapping external calendar events do not remove the full duration of both events in HivePress Bookings

Using the HivePress Bookings extension with a booking import URL. When two events overlap on the external calendar, the first event encountered seems to be used to block out availability, even if the second event is longer.

Steps to reproduce

Actual result

  • Searching for listings on 2025-05-06 does not show the listing as available
  • Searching for listings on 2025-05-07 shows the listing as available

Expected result

  • Searching for listings on 2025-05-06 does not show the listing as available
  • Searching for listings on 2025-05-07 does not show the listing as available

Extra details

  • Calendar setup
  • Relevant lines of code in includes/components/class-booking.php
  • What I suspect is happening is that the first event gets created as a private/invisible booking, then the second event is skipped due to the first event now being an overlapping booking
  • Internally, we have worked around this by using an exact match on start/end time for any external events longer than 24 hours, and using get_overlapping_query() for shorter events to prevent creating huge numbers of small bookings

Hi,

Your request is related to a premium product. Please add the license key to the account settings to access forums for your purchased products and get the Premium Support badge on your profile. If the support for your purchase has expired, please consider renewing it for assistance Renew Support | HivePress

Added the key, thanks

Hi,

Please note that the premium support for your purchase has expired, please consider renewing it for assistance Renew Support | HivePress