summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2020-01-08 14:44:26 (GMT)
committerChristian Pointner <equinox@helsinki.at>2020-01-08 14:44:26 (GMT)
commitf10ab566a28249fc0c8e043b1a705c2c7ceb3b72 (patch)
tree8455e05085ff0b572ea9e4304a9307b4acad5d24
parent803b099ab261a07488c3b1d4e96013383b8a7ad7 (diff)
rhrd-schedules: ingore DOW check if it is set to -10.23.0rel-0.23.0
-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";