Skip to content

Commit

Permalink
NO-JIRA: Logikkfeil, skulle vært hvis sluttdato er etter nåværende dato
Browse files Browse the repository at this point in the history
  • Loading branch information
hamkel committed Jun 21, 2024
1 parent 93d44bc commit 0a66f4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private void add(ExcelBuilder doc, Member member) {
}

private String shouldHideEndDateIfBeforeNow(LocalDate endDate) {
if (isNull(endDate) || endDate.isBefore(LocalDate.now())) return null;
if (isNull(endDate) || endDate.isAfter(LocalDate.now())) return null;
else return DateUtil.formatDate(endDate);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public ResourceResponse convertToResponse() {
}

private LocalDate shouldHideEndDateIfBeforeNow() {
if (isNull(this.endDate) || this.endDate.isBefore(LocalDate.now())) return null;
if (isNull(this.endDate) || this.endDate.isAfter(LocalDate.now())) return null;
else return this.endDate;
}
}

0 comments on commit 0a66f4c

Please sign in to comment.