spectre skips sundays due to an off by 1 diff between cron format and DateTime->dow

This commit is contained in:
Colin Kuskie 2007-03-12 15:26:21 +00:00
parent 456ec9dd0b
commit 98e5d9ea56
2 changed files with 2 additions and 1 deletions

View file

@ -40,6 +40,7 @@
- Fully remove i18n precaching to free up memory (thanks to Matthew Wilson,
Veradox)
- Wiki page revisions were not in order (perlDreamer Consulting, LLC)
- Spectre misses Sundays (thanks to Todor Kouyoumdjiev, ECoCoMS Ltd.)
7.3.11
- Added an option for enabling coverage tests to testCodebase.pl.

View file

@ -155,7 +155,7 @@ sub checkSchedule {
&& $self->checkSegment($now->hour, $job->{hourOfDay}, [0..23])
&& $self->checkSegment($now->day, $job->{dayOfMonth}, [1..31])
&& $self->checkSegment($now->month, $job->{monthOfYear}, [1..12])
&& $self->checkSegment($now->dow, $job->{dayOfWeek}, [0..6]) ) {
&& $self->checkSegment($now->dow-1, $job->{dayOfWeek}, [0..6]) ) {
$self->debug("It's time to run ".$jobId.". Creating workflow instance.");
$kernel->yield("runJob",$jobId);
}