Scheduler schedules a job with the cron expression evaluating time from the local machine. However, if you set the cron expression and zone, it does not function as expected.

Ex: @Scheduled(cron = "\${server.indexer.cron.expression}") works fine according to local timezone and Scheduled(cron = "\${server.indexer.cron.expression}", zone = "UTC") does not function.

Version : 5.3.9 Springboot version : 2.5.4

Comment From: poutsma

We will going to need more information to resolve this issue. What is the cron expression? Would it be possible to provide a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem?

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.