diff --git a/projects/resettlement-passport-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/entity/Appointment.kt b/projects/resettlement-passport-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/entity/Appointment.kt index 3fc7ddcd1d..a6492028d1 100644 --- a/projects/resettlement-passport-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/entity/Appointment.kt +++ b/projects/resettlement-passport-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/entity/Appointment.kt @@ -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 @@ -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 {