Reputation: 49
My Java Web application has a Cron Job Scheduler which should trigger every hour starting from 7AM PST to 6PM PST. I am not getting how to specify PST time zone using zone parameter inside @Scheduled annotation. Kindly help
@Component
public class CronJobForFailedLoans {
@Scheduled(cron ="0 0 7-18 ? * *")
public void cronJobForFailedLoans() {
// Perform operations
} }
Upvotes: 2
Views: 2133