From 878dfa685fe63f9e390b382da4bcae8ff18a63bd Mon Sep 17 00:00:00 2001 From: herrmannj Date: Thu, 24 Aug 2023 09:03:20 +0000 Subject: [PATCH] Cron.pm: wip git-svn-id: https://svn.fhem.de/fhem/trunk@27893 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/lib/FHEM/Scheduler/Cron.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/lib/FHEM/Scheduler/Cron.pm b/fhem/lib/FHEM/Scheduler/Cron.pm index a936a50a2..faff6a062 100644 --- a/fhem/lib/FHEM/Scheduler/Cron.pm +++ b/fhem/lib/FHEM/Scheduler/Cron.pm @@ -717,7 +717,7 @@ sub _next_positional_date { my $d = $days_in_month[$m] - $day_diff; my $candidate = sprintf('%04d%02d%02d', $y, $m, $d); $self->log(5, 'candidate %04d-%02d-%02d', $y, $m, $d) if $ENV{EXTENDED_DEBUG}; - if ($d > 1 and $self->is_valid_date($y, $m, $d) and + if ($d > 0 and $self->is_valid_date($y, $m, $d) and (($inclusive and $candidate >= $from_date) or (not $inclusive and $candidate > $from_date))) { push @res, $self->{positional_date_cache}->{$item} = $found = $candidate;