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

Cron value discrepancies #1784

Open
jimtng opened this issue Mar 15, 2022 · 1 comment
Open

Cron value discrepancies #1784

jimtng opened this issue Mar 15, 2022 · 1 comment

Comments

@jimtng
Copy link
Contributor

jimtng commented Mar 15, 2022

The openhab docs here: https://www.openhab.org/docs/configuration/rules-dsl.html#time-based-triggers
points to https://www.quartz-scheduler.org/documentation/quartz-2.2.2/tutorials/tutorial-lesson-06.html as the reference for the cron syntax.

  • Month: quartz's docs say: month is from 0-11 (0 = January?) but based on experiment with openhab, it appears that this should be 1-12. This cron job runs now (March) * * * * 3 * which means 3 = March, and therefore 1 = january.
  • Last day of week: Quarts docs say L = SAT. In openhab's code it seems that L = SUN, although I haven't tested this one yet.

Changing any of this would break existing code, so perhaps the docs need to be updated instead?

@Confectrician
Copy link
Contributor

Hm,

We have different rule engines allowing to use cron, so we should also check if this affects other docs too.

Since everything is quartz based we should then link to quartz as the basic sourc and add a list of "Exceptions".

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