From 74add68427eda1dc07a6312734e9fc297adcd0cb Mon Sep 17 00:00:00 2001 From: devxb Date: Mon, 12 Feb 2024 13:40:23 +0900 Subject: [PATCH] release: 0.4.3 --- .../net/teumteum/meeting/service/MeetingAlertPublisher.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/teumteum/meeting/service/MeetingAlertPublisher.java b/src/main/java/net/teumteum/meeting/service/MeetingAlertPublisher.java index b4647af..40e3ef5 100644 --- a/src/main/java/net/teumteum/meeting/service/MeetingAlertPublisher.java +++ b/src/main/java/net/teumteum/meeting/service/MeetingAlertPublisher.java @@ -1,6 +1,8 @@ package net.teumteum.meeting.service; import java.time.LocalDateTime; +import java.time.ZoneId; +import java.time.ZonedDateTime; import lombok.RequiredArgsConstructor; import net.teumteum.meeting.domain.BeforeMeetingAlerted; import net.teumteum.meeting.domain.EndMeetingAlerted; @@ -23,7 +25,7 @@ public class MeetingAlertPublisher { @Scheduled(cron = EVERY_ONE_MINUTES) public void alertBeforeMeeting() { - var alertStart = LocalDateTime.now().plusMinutes(5).withNano(0).withSecond(0); + var alertStart = LocalDateTime.now(ZoneId.of("Asia/Seoul")).plusMinutes(5).withNano(0).withSecond(0); System.out.println(">>> alertStart = " + alertStart); var alertEnd = alertStart.plusMinutes(1).withNano(0).withSecond(0); System.out.println(">>> alertEnd = " + alertEnd); @@ -37,7 +39,7 @@ public void alertBeforeMeeting() { @Scheduled(cron = EVERY_12PM) public void alertEndMeeting() { - var today = LocalDateTime.now() + var today = LocalDateTime.now(ZoneId.of("Asia/Seoul")) .withNano(0) .withSecond(0) .withMinute(0)