Skip to content

Commit

Permalink
Merge pull request #169 from teamterning/staging
Browse files Browse the repository at this point in the history
[🎉 deploy] 터닝 운영서버 배포
  • Loading branch information
junggyo1020 authored Oct 26, 2024
2 parents a0c0d1f + b2cdf13 commit 13f5b68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/terning/terningserver/util/DateUtil.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package org.terning.terningserver.util;

import java.time.LocalDate;
import java.time.Period;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.temporal.ChronoUnit;

public class DateUtil {

Expand All @@ -15,7 +17,7 @@ public static String convert(LocalDate deadline) {
} else if (deadline.isBefore(currentDate)) {
return "지원마감";
} else {
long daysUntilDeadline = currentDate.until(deadline).getDays();
long daysUntilDeadline = ChronoUnit.DAYS.between(currentDate, deadline);
return "D-" + daysUntilDeadline;
}
}
Expand Down

0 comments on commit 13f5b68

Please sign in to comment.