Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Afficher les messages JPE déclarés jusqu'à 4h dans le futur #3542

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ export namespace PriorNotification {
TRA = 'TRA'
}
export const PURPOSE_LABEL: Record<PurposeCode, string> = {
// 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"
Expand Down
Loading