Are the Spring @Scheduled cron expressions using the system default timezone or UTC?
Asked
Active
Viewed 561 times
1
Archimedes Trajano
- 35,625
- 19
- 175
- 265
1 Answers
2
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
shockwave
- 442
- 3
- 9