Issue Bug Closed

#66435Scheduler Task - Cron Command for recurring tasks not evaluated correctly

Alex B 04/15/15, 12:51 updated 09/06/17, 14:40

Description

Hi,

when creating a task in the scheduler, set it to recurring and use a cron command, the next execution is displayed and executed wrong.
The resulting execution time is also dependend on the current time when the task is saved.

The cron command e.g.:
*/10 * * * 4
which translates to: run every 10 minutes on thursdays, so it should start at 0:00 thursdays, then 0:10, 0:20, …
But when i save the task the next run is stated for the correct day, but with a start time from the current time.

Example:
it is now: 15.04.2015 12:45
saving the above cron command the next execution is: 16.04.2015 12:50
which is the correct day but wrong time. And this is not only a display problem. The execution really starts there.

Even stranger:
if i save with the following command at 12:45h:
*/10 8-11 * * 4
the next execution is correctly stated at: 16-04-15 08:00
if i save this one
*/10 8-12 * * 4
i get the next execution wrong at this time: 16-04-15 12:50

Cheers & Thank you

Alex

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.