Skip to content

Commit

Permalink
fix: 타입 불일치 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kimyu0218 committed Nov 10, 2024
1 parent 4b91204 commit 2b05d1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- develop
- fix/#84-fcm-push

jobs:
build-and-push:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public LocalDateTime getMissionUploadEndDateTime() {
// 미션 시작 예고 시간 == 미션 시작 1시간 전
public boolean isReadyTime() {
LocalDateTime startTime = LocalDateTime.of(this.missionStartDate.toLocalDate(), LocalTime.parse(this.uploadStartTime));
Duration duration = Duration.between(startTime, LocalDate.now());
Duration duration = Duration.between(startTime, LocalDateTime.now());

return duration.isNegative() && duration.toHours() <= 1;
}
Expand Down

0 comments on commit 2b05d1e

Please sign in to comment.