function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Apex Scheduler Chron expression not producing the correct schedule

At the bottom of the developer docs page for the Apex Scheduler, there is a list of example time and date expressions.  One of them is every day at 1PM.  This is the schedule I need except I want my job to run at midnight.  The pattern in the example is 0 0 13 * * ?.  For my schedule, I changed it to 0 0 0 * * ? to get a midnight run.


After scheduling the job, the Scheduled Jobs monitor has the time correct (its midnight), but the date schedule is Monthly, On day 1.  This means run on the first day of each month only?


Can someone explain why I seem to get a different schedule date, from what the pattern is stating?