diff --git a/src/main/java/sopt/org/hmh/domain/user/service/UserService.java b/src/main/java/sopt/org/hmh/domain/user/service/UserService.java index 55c63d1b..6682d188 100644 --- a/src/main/java/sopt/org/hmh/domain/user/service/UserService.java +++ b/src/main/java/sopt/org/hmh/domain/user/service/UserService.java @@ -129,8 +129,9 @@ public IsLockTodayResponse checkIsTodayLockDeprecated(Long userId, LocalDate loc @Transactional(readOnly = true) public IsLockTodayResponse checkIsTodayLock(Long userId, String timeZone) { + LocalDate now = LocalDate.now(ZoneId.of(timeZone)); LocalDate userRecentLockDate = this.findByIdOrThrowException(userId).getRecentLockDate(); - return new IsLockTodayResponse(userRecentLockDate.equals(LocalDate.now(ZoneId.of(timeZone)))); + return new IsLockTodayResponse(now.equals(userRecentLockDate)); } public void withdrawImmediately(Long userId) {