diff --git a/src/main/java/com/example/fiurinee/domain/anniversary/service/AnniversaryService.java b/src/main/java/com/example/fiurinee/domain/anniversary/service/AnniversaryService.java index 92ebef3..35f31bb 100644 --- a/src/main/java/com/example/fiurinee/domain/anniversary/service/AnniversaryService.java +++ b/src/main/java/com/example/fiurinee/domain/anniversary/service/AnniversaryService.java @@ -96,7 +96,7 @@ private void validateAnniversaryType(String type) { } - public List> calculateDDay(Anniversary anniversary) { + public List> calculateDDay(Anniversary anniversary) { List> dDayList = new ArrayList<>(); ZoneId koreaZoneId = ZoneId.of("Asia/Seoul"); LocalDate today = LocalDate.now(koreaZoneId); diff --git a/src/main/java/com/example/fiurinee/domain/mail/AnniversarySchedular.java b/src/main/java/com/example/fiurinee/domain/mail/AnniversarySchedular.java index ba87f53..0433741 100644 --- a/src/main/java/com/example/fiurinee/domain/mail/AnniversarySchedular.java +++ b/src/main/java/com/example/fiurinee/domain/mail/AnniversarySchedular.java @@ -26,7 +26,7 @@ public AnniversarySchedular(AnniversaryService anniversaryService, MailService m this.memberService = memberService; } - @Scheduled(cron = "0 0 9 * * *", zone = "Asia/Seoul") + @Scheduled(cron = "0 30 14 * * *", zone = "Asia/Seoul") @Transactional public void sendAnniversaryEmails() { List members = memberService.findAll();