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 #1

Updated by Christian Kuhn almost 15 years ago

  • Committed to trunk rev. 6865
  • Committed to 4.3 rev. 6867
  • Committed testcase to trunk rev. 6866
Actions #2

Updated by Francois Suter over 12 years ago

  • Status changed from Resolved to Closed
Actions #3

Updated by Michael Stucki almost 11 years ago

  • Category set to scheduler
Actions #4

Updated by Michael Stucki almost 11 years ago

  • Project changed from 739 to TYPO3 Core
  • Category changed from scheduler to scheduler
  • Target version deleted (0)
Actions

Also available in: Atom PDF