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 3a968e5f7c..18a0b9d91d 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 @@ -24,7 +24,11 @@ class GetVesselVoyage( when (voyageRequest) { VoyageRequest.LAST -> logbookReportRepository.findLastTripBeforeDateTime( internalReferenceNumber, - ZonedDateTime.now(), + /** + * This 4-hour buffer prevents incorrect message datetime to be filtered. + * Sometimes, vessel inboard computers might have offset datetime. + */ + ZonedDateTime.now().withHour(4), ) VoyageRequest.PREVIOUS -> { require(tripNumber != null) { diff --git a/frontend/src/features/PriorNotification/PriorNotification.types.ts b/frontend/src/features/PriorNotification/PriorNotification.types.ts index b31633a40a..993b8b0130 100644 --- a/frontend/src/features/PriorNotification/PriorNotification.types.ts +++ b/frontend/src/features/PriorNotification/PriorNotification.types.ts @@ -143,8 +143,8 @@ export namespace PriorNotification { TRA = 'TRA' } export const PURPOSE_LABEL: Record = { - // TODO Find out what this purpose code means. - ACS: 'Non supporté', + // "Access to services" + ACS: 'Accès aux services', // "Emergency" ECY: 'Urgence', // "Vessels grounded and called by the authorities"