505506507508509510511512
if (calendarAvailability.getEndDate() != null) { endDate = calendarAvailability.getEndDate() .toDateTimeAtStartOfDay().toDate(); } return new CalendarAvailabilityDTO(calendarAvailability.getCode(), startDate, endDate); }