summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/rhrd-schedules2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rhrd-schedules b/utils/rhrd-schedules
index 60bea3d..cd4f771 100755
--- a/utils/rhrd-schedules
+++ b/utils/rhrd-schedules
@@ -175,7 +175,7 @@ sub show__day_entry
print "WARNING: title mismatch (PV: '$title' != RD: '" . ${$show}{'TITLE'} . "') -- PV-id: $pvid\n";
return 1;
}
- if($dow != ${$show}{'DOW'}) {
+ if(${$show}{'DOW'} != -1 && $dow != ${$show}{'DOW'}) {
my $rddowstr = "-";
$rddowstr = Date::Calc::Day_of_Week_to_Text(${$show}{'DOW'}) if(${$show}{'DOW'} >= 0);
print "WARNING: wrong day of week (PV: " . Date::Calc::Day_of_Week_to_Text($dow) . " != RD: " . $rddowstr . ") -- PV-id: $pvid\n";