kelektiv / node-cron

Cron for NodeJS.
MIT License
8.48k stars 626 forks source link

fix: midnight cron not executing #884

Closed sheerlox closed 6 months ago

sheerlox commented 6 months ago

Description

WIP

Related Issue

https://github.com/kelektiv/node-cron/issues/400

Motivation and Context

When scheduling a cron job at midnight everyday (00 00 * * *), it doesn't get executed.

How Has This Been Tested?

Fixed the cron pattern in the test that was supposed to cover this use case.

Screenshots (if appropriate):

Types of changes

Checklist:

sheerlox commented 6 months ago

See https://github.com/kelektiv/node-cron/issues/400#issuecomment-2114838403.