Open hothotsavage opened 1 year ago
cron表达式有没有
表中记录的下一次触发时间戳: xxl_job_info.triger_next_time = 1677974400000 (2023-03-05 08:00:00.000)
有没有查一下数据库连接的时区等配置。
中国是东8区,刚好8小时,你这肯定是时区设置有问题
这个是你的时区设置问题
Please set app timezone before SpringApplication.run()
.
TimeZone timeZone = TimeZone.getTimeZone("Asia/Shanghai");
TimeZone.setDefault(timeZone);
Please answer some questions before submitting your issue. Thanks!
Which version of XXL-JOB do you using?
2.3.1
Expected behavior
cron定时执行
Actual behavior
延迟8小时才执行 mysql表xxl_job_info的trigger_next_time字段记录的时间比设定cron时间延迟8小时
Steps to reproduce the behavior
Other information