Are the Spring @Scheduled
cron expressions using the system default timezone or UTC?
CodePudding user response:
If zone
argument is not passed to @scheduled
then it will use server's default time zone,
to change it you can send zone
parameter like :
@Scheduled(cron = "0/5 * * ? * *", zone="IST")
Reference:Spring Api doc