kelektiv / node-cron

Cron for NodeJS.
MIT License
8.3k stars 617 forks source link

fix: midnight cron not executing #884

Closed sheerlox closed 1 month ago

sheerlox commented 1 month 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 1 month ago

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