From 56364d55deec68f7672e52d7d33e05df51836722 Mon Sep 17 00:00:00 2001 From: Loup Theron Date: Tue, 20 Aug 2024 11:46:21 +0200 Subject: [PATCH] Fix last trip date --- .../cnsp/monitorfish/domain/use_cases/vessel/GetVesselVoyage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/vessel/GetVesselVoyage.kt b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/vessel/GetVesselVoyage.kt index 18a0b9d91d..643a2bf4de 100644 --- a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/vessel/GetVesselVoyage.kt +++ b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/vessel/GetVesselVoyage.kt @@ -28,7 +28,7 @@ class GetVesselVoyage( * This 4-hour buffer prevents incorrect message datetime to be filtered. * Sometimes, vessel inboard computers might have offset datetime. */ - ZonedDateTime.now().withHour(4), + ZonedDateTime.now().plusHours(4), ) VoyageRequest.PREVIOUS -> { require(tripNumber != null) {