[TYPO3-core] RFC #13193: Bug: Day of week in scheduler cron command is not calculated correctly
Christian Kuhn
lolli at schwarzbu.ch
Sun Jan 10 00:25:29 CET 2010
This is SVN patch request.
Type: bugfix
Branches: trunk, 4.3
BT reference: http://bugs.typo3.org/view.php?id=13193
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 #13192 and
will be committed to trunk only, while the bugfix should go to 4.3 too.
Regards
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 13193_01.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100110/8ad4ccc6/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 13193_testcase_01.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100110/8ad4ccc6/attachment.txt>
More information about the TYPO3-team-core
mailing list