gorhill / cronexpr

Cron expression parser in Go language (golang)
683 stars 168 forks source link

leading zero are not accepted #31

Open CircleCode opened 6 years ago

CircleCode commented 6 years ago

most cron implementations authorize the use of leading zeros to improve readbility (and alignment). When using a task in the form 01 * * * *, cronexpr complains about bad crontab line: 01 * * * *… If I remove the leading zero, it works as expected.

Note : I'm using cronexpr through aptible/supercronic i hope supercronic is not the culprit.

nefeg commented 6 years ago

32

https://github.com/umbrella-evgeny-nefedkin/cronexpr

poornima-ns commented 5 years ago

I am having the same issue as well where it errors out when leading 0s is provided in the cron expression. It would be really nice to have the fix available to public.