Skip to content

Commit

Permalink
Merge pull request #303 from ASAP-as-soon-as-possible/feat/#302
Browse files Browse the repository at this point in the history
#302 [fix] local date 객체를 값 비교를 하도록 수정
  • Loading branch information
KWY0218 authored Aug 5, 2024
2 parents fe6ff0f + 37215ea commit da63238
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public List<BestMeetingTimeVo> getBestMeetingTime(
}

private boolean isRecommendedMeetingTime(TimeBlockDto timeBlock, BestMeetingTimeVo bestMeetingTime) {
return timeBlock.availableDate() == bestMeetingTime.date()
return timeBlock.availableDate().isEqual(bestMeetingTime.date())
&& bestMeetingTime.startTime().getIndex() <= timeBlock.timeSlot().getIndex()
&& bestMeetingTime.endTime().getIndex() >= timeBlock.timeSlot().getIndex();
}
Expand Down

0 comments on commit da63238

Please sign in to comment.