Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect multiple range hour interpretation #294

Open
1 task done
JEDorsey opened this issue Sep 18, 2023 · 1 comment
Open
1 task done

Incorrect multiple range hour interpretation #294

JEDorsey opened this issue Sep 18, 2023 · 1 comment

Comments

@JEDorsey
Copy link

JEDorsey commented Sep 18, 2023

Cron Expression

* 1-2,22-23 * * *

Expected Output
"Every minute, at 01:00 AM through 02:59 AM and 10:00 PM through 11:59 PM"

Actual Output
"Every minute, at 01:00 AM through 02:00 AM and 10:00 PM through 11:59 PM"

Prerequisites

  • The cron expression being passed in is a valid expression. cRonstrue does not validate expressions and assumes the one you pass is already valid. See the FAQ for more details.
@sbrennan4
Copy link

I'm also experiencing this issue.

Cron pattern: * 1-2,3 * * *

Expected Output
Every minute, between 01:00 AM and 02:59 AM and between 03:00 AM and 03:59 AM, every day

Actual Output
Every minute, at 01:00 AM through 02:00 AM and 03:59 AM, every day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants