Skip to content

Commit

Permalink
release: 0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Feb 12, 2024
1 parent e6b1e92 commit 74add68
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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);
Expand All @@ -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)
Expand Down

0 comments on commit 74add68

Please sign in to comment.