fixed: Scheduled workflows based on day of week run on wrong day

This commit is contained in:
Graham Knop 2008-08-19 17:36:11 +00:00
parent f4e43c9b31
commit b02b4823ff
3 changed files with 10 additions and 1 deletions

View file

@ -161,7 +161,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-1, $job->{dayOfWeek}, [0..6]) ) {
&& $self->checkSegment($now->dow % 7, $job->{dayOfWeek}, [0..6]) ) {
$self->debug("It's time to run ".$jobId.". Creating workflow instance.");
$kernel->yield("runJob",$jobId);
}