[TYPO3-core] RFC #16470: Bug: Scheduler fails to calculateNextValue a turn of the year

Tobias Hövelborn th at simplethings.de
Fri Nov 19 15:30:46 CET 2010


This is an SVN patch request.

Type: Bugfix

Bugtracker references: http://bugs.typo3.org/view.php?id=16470

Branches: trunk, TYPO3_4-4, TYPO3_4-3

Problem:
In class sysext/scheduler/class.tx_scheduler_croncmd.php
calculation of a next value for cron execution in scheduler sysext 
fails, if day of week is spefified in cron command and the next value is 
in the next year.

Solution:
If change of month triggers a change of year the day start value has not 
been recaculated/ reseted. The attached patch triggers the setting of 
the new start day when incremeting month or year.

Notes:
See bugtracker for example code. IMO in the long term the method would 
need a refactoring, pretty hard to read.

Thank you, Regards Tobias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug_16470.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101119/c5cf5e66/attachment.txt>


More information about the TYPO3-team-core mailing list