Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-britton-moj authored Mar 25, 2024
1 parent 554d0da commit 87ad4f6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import uk.gov.justice.digital.hmpps.exception.NotFoundException
import java.time.Duration
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.ZoneId
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter

Expand Down Expand Up @@ -209,8 +210,8 @@ fun AppointmentRepository.appointmentClashes(
): Boolean = getClashCount(
personId,
date.format(DateTimeFormatter.ISO_LOCAL_DATE),
startTime.format(DateTimeFormatter.ISO_LOCAL_TIME.withZone(EuropeLondon)),
endTime.format(DateTimeFormatter.ISO_LOCAL_TIME.withZone(EuropeLondon))
startTime.format(DateTimeFormatter.ISO_LOCAL_TIME.withZone(ZoneId.systemDefault())),
endTime.format(DateTimeFormatter.ISO_LOCAL_TIME.withZone(ZoneId.systemDefault()))
) > 0

interface AppointmentTypeRepository : JpaRepository<AppointmentType, Long> {
Expand Down

0 comments on commit 87ad4f6

Please sign in to comment.