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
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.
The Quartz CronTrigger does not support the DST. Is there any solution?
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.
The Quartz CronTrigger does not support the DST. Is there any solution?