diff --git a/backend/src/appointment/controller/calendar.py b/backend/src/appointment/controller/calendar.py index 14a40c440..eaca7aea4 100644 --- a/backend/src/appointment/controller/calendar.py +++ b/backend/src/appointment/controller/calendar.py @@ -1058,7 +1058,7 @@ def existing_events_for_schedule( now = datetime.now() earliest_booking = now + timedelta(minutes=schedule.earliest_booking) - farthest_booking = now + timedelta(minutes=schedule.farthest_booking) + farthest_booking = now + timedelta(days=1, minutes=schedule.farthest_booking) start = max([datetime.combine(schedule.start_date, schedule.start_time), earliest_booking]) end = (