Issue Bug Closed

#25644Day of week in cron command is not calculated correctly

Christian Kuhn 01/09/10, 23:53 updated 12/10/13, 01:27

Description

Problem:
If cron command is set to “1 1 * * 1” a task is executed every day, but it should be executed every monday only . Additionaly if both fields (day of month and day of week) are restricted, result should be an additive accumulation of both fields.
(see ‘man 5 crontab’ if using vixiecron on your favorite unix).

Solution:
Add a test if day of month is not restricted (* in 3rd part) and unset already calculated list of days for day of week calculation, otherwise combine arrays.

Notes:
Run the test cases to see what happens. The tests depend on #13191 and will be committed to trunk only.

(issue imported from #M13193)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.