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

1.month schedule with a typo in at: silently succeeds with wrong date #652

Closed
ctrlrsf opened this issue Aug 1, 2016 · 2 comments
Closed

Comments

@ctrlrsf
Copy link

ctrlrsf commented Aug 1, 2016

A typo such as 'Aug 31sh 11:00pm' in the at: parameter for a 1.month crontab creates a wrong crontab entry.

Generated crontab has 1 in the day of month field:

0 23 1 * * /bin/bash -l -c 'echo test'

Would be nice if whenever existed with non-zero for typos like this. Willing to work on fix for this if I could get some guidance.

@benlangfeld
Copy link
Collaborator

➭ be irb
>> require 'chronic'
=> true
>> Chronic.parse 'Aug 31sh 11:00pm'
=> 2016-08-01 23:00:00 -0400

It looks like this is actually an issue with Chronic (which we use here). It looks like they don't support such a thing. Could you file an issue over there referencing this one?

@ctrlrsf
Copy link
Author

ctrlrsf commented Aug 1, 2016

Thanks for the pointer. Will do!

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

No branches or pull requests

2 participants