Skip to content

Commit

Permalink
RAC-311 fix : SalaryDate 계산 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ywj9811 committed Feb 15, 2024
1 parent 8f55f9b commit 46fe498
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 @@ -72,7 +72,7 @@ public void updateDate(String date) {
public boolean checkAutoDone() {
DateTimeFormatter formatter = ofPattern("yyyy-MM-dd-HH-mm");
LocalDateTime doneDate = parse(this.date, formatter);
return now().minusDays(2)
return now().minusDays(3)
.isAfter(doneDate);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ private SalaryUtil() {

public static LocalDate getSalaryDate() {
LocalDate now = LocalDate.now();
return now.getDayOfMonth() <= SALARY_DATE
return now.getDayOfMonth() < SALARY_DATE
? now.withDayOfMonth(SALARY_DATE)
: now.plusMonths(1).withDayOfMonth(SALARY_DATE);
}
Expand Down

0 comments on commit 46fe498

Please sign in to comment.