Project

General

Profile

Actions

Bug #25644

closed

Day of week in cron command is not calculated correctly

Added by Christian Kuhn almost 15 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Category:
scheduler
Target version:
-
Start date:
2010-01-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #25643: Allow different timestamp as optional parameter in constructor of class tx_scheduler_croncmdClosedChristian Kuhn2010-01-09

Actions
Actions

Also available in: Atom PDF