quartz-scheduler / quartz

Code for Quartz Scheduler
http://www.quartz-scheduler.org
Apache License 2.0
6.23k stars 1.92k forks source link

In the DST scenario, the org.quartz.CronExpression#getTimeAfter function returns null and throws an exception:Based on configured schedule, the given trigger will never fire. #1138

Open jixiang8320216 opened 2 months ago

jixiang8320216 commented 2 months ago

Premise: The current system time zone is Africa/Casablanca, and the time is 2025-02-23 02:45:10,544 DST, quartz version: 2.3.2 Actions: registers cron-type scheduled tasks with the quartz. :cronExpression29 5 2 23 2 ? 2025 (Daylight Saving Time exits.) Execution result: When the getTimeAfter (Date afterTime) function in CronTriggerImpl is invoked, the returned result is null. As a result, Caused by: org.quartz.SchedulerException: Based on configured schedule, the given trigger will never fire. is thrown.

image

The Quartz CronTrigger does not support the DST. Is there any solution?

lprimak commented 2 months ago

This project is abandoned. See #1134