I have a rule to inform me if one of my servers go offline when they shouldn’t that I only want to check during the hours of 8am to 11pm. The servers will shutdown over night deliberately when doing cloud backups or maintenance
I use the following as a variable to ensure the rule only trriggers during that time. It seems to not work occasionally, can anyone tell me if anything is wrong with the syntax, the IDE is happy.
var boolean ValidTime = (now.isAfter(now.withTimeAtStartOfDay.plusHours(8)) &&
the test is
if (ValidTime == true)
Thanks in advance