package app;

import app.demo.job.DemoJob;
import core.framework.api.Module;

import java.time.DayOfWeek;
import java.time.LocalTime;
import java.time.temporal.ChronoUnit;

/**
 * @author neo
 */
public class JobModule extends Module {
    @Override
    protected void initialize() {
        DemoJob job = bind(DemoJob.class);
//        schedule().fixedRate("fixed-rate-job", job, Duration.ofSeconds(15));
        LocalTime time = LocalTime.now().plusSeconds(10).truncatedTo(ChronoUnit.SECONDS);
        schedule().dailyAt("daily-job", job, time);
        schedule().weeklyAt("weekly-job", job, DayOfWeek.MONDAY, time);
        schedule().monthlyAt("monthly-job", job, 10, time);
    }
}

@@ -116,25 +116,77 @@
 va.time.
-LocalTime
+Duration;%0Aimport java.time.LocalTime;%0Aimport java.time.ZoneId
 ;%0Aimport
@@ -329,16 +329,77 @@
 ize() %7B%0A
+        schedule().timeZone(ZoneId.of(%22America/New_York%22));%0A%0A
         
@@ -437,10 +437,8 @@
 s);%0A
-//
     
@@ -600,16 +600,17 @@
 CONDS);%0A
+%0A
         

tweak scheduler timezone config