Skip to content

Commit

Permalink
Merge pull request #92 from TeamPINGLE/fix/91
Browse files Browse the repository at this point in the history
[fix] get mypingle api 디데이 로직 변경
  • Loading branch information
tkdwns414 authored Jan 17, 2024
2 parents 78c3b4b + ab479a6 commit c860a9b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ private static String createDDay(LocalDateTime startAt, LocalDateTime endAt) {
return DONE;
if(ChronoUnit.DAYS.between(startDate, LocalDate.now()) == 0)
return DDAY;
return DDAYPREFIX + ChronoUnit.DAYS.between(startDate, LocalDate.now());//12일 13일 -> 1
if(-8 < ChronoUnit.DAYS.between(startDate, LocalDate.now()) &&
ChronoUnit.DAYS.between(startDate, LocalDate.now()) < 0)
return DDAYPREFIX + ChronoUnit.DAYS.between(startDate, LocalDate.now());//12일 13일 -> 1
return "";
}
}

0 comments on commit c860a9b

Please sign in to comment.