Skip to content

previousRun and currentRun return null all the time #226

@Earu

Description

@Earu

Describe the bug
previousRun and currentRun return null all the time.

To Reproduce

let date = Cron("0 0 11 * *", { timezone: "Europe/London" }).previousRun();
console.log("PREVIOUS", date);

Expected behavior
The actual date of when the previous run would have ran.

System:

  • OS: Windows
  • Runtime: Node.js
  • Version: v18.15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions