Bug #42414
closed
Scheduler frequency in cron style
Added by Tomasz Krawczyk about 12 years ago.
Updated about 11 years ago.
Description
I've noticed that Scheduler doesn't resolve correctly frequency in cron style.
First problem - an hour 1 hour.
Frequency "0 4 * * 0" (every sunday 4 am.) but next execution is scheduled at 2012-10-28 3:00 (Sunday 3 am.).
Second problem - day of week. I think there should be a warning during saving the taks.
Frequency "0 23 * * 7" where 7 is wrong, but is scheduled at 2012-10-28 22:00 (Sunday 10 pm.).
Noticed in TYPO3 4.5.19 and 4.6.12. Example on the image.
Files
- Status changed from New to Needs Feedback
- Assignee set to Tomasz Krawczyk
Hi Tomasz,
Tomasz Krawczyk wrote:
First problem - an hour 1 hour.
Frequency "0 4 * * 0" (every sunday 4 am.) but next execution is scheduled at 2012-10-28 3:00 (Sunday 3 am.).
this rather seems like an issue with the switch from daylight savings time to normal time. Is the value still wrong?
Second problem - day of week. I think there should be a warning during saving the taks.
Frequency "0 23 * * 7" where 7 is wrong, but is scheduled at 2012-10-28 22:00 (Sunday 10 pm.).
"7" is an absolutely valid week day value in crontab.
Hi Torsten,
I'm not sure if it is because of daylight savings. I'm from Poland and I use GMT+1 time zone.
According to http://en.wikipedia.org/wiki/Cron the fifth parameter should be 0-6. I have to admit somewhere in the classes I saw a comment that suggested using 1-7. Then 0 as a fifth parameter is incorrect but the extension allows using both 0 and 7.
Thorsten,
My mistake the fifth parameter may be 0-7 but this one hour is strange to me.
Hi Tomasz,
what is the state of this issue, did something change with newer versions?
Hi Alexander,
I didn't check newer T3 versions. I will check it on 27 October - when I'll change time CEST to CET.
We have it after 27. October, so did you test again?
Currently I see no problem. I think the bug may be closed.
- Status changed from Needs Feedback to Closed
- Assignee deleted (
Tomasz Krawczyk)
Also available in: Atom
PDF