[TYPO3-core] RFC #13193: Bug: Day of week in scheduler cron command is not calculated correctly
Christian Kuhn
lolli at schwarzbu.ch
Sun Feb 7 21:05:51 CET 2010
* Committed to trunk rev. 6865
* Committed to 4.3 rev. 6867
* Committed testcase to trunk rev. 6866
Final patches attached.
Thanks for reviews
Christian
Christian Kuhn wrote:
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13193_02.diff
Type: text/x-patch
Size: 1287 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100207/d122f49e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13193_testcase_01.diff
Type: text/x-patch
Size: 3941 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100207/d122f49e/attachment-0001.bin>
More information about the TYPO3-team-core
mailing list