Home > other >  Are Spring @Scheduled cron expressions in system default timezone or UTC?
Are Spring @Scheduled cron expressions in system default timezone or UTC?

Time:07-11

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

  • Related