From 3db435180b35bcba69b11f85bf54a64c27cd58c4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 1 Apr 2007 18:07:49 +0000 Subject: [PATCH] Correctly handle hour and minutes on the dot. --- etc/inc/pfsense-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 41af90e294..edbd1909f5 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -599,7 +599,7 @@ function tdr_hour($schedule) { $now = strtotime("now"); if($debug) echo "S: $starting_time E: $ending_time N: $now \n"; - if($now > $starting_time and $now < $ending_time) + if($now >= $starting_time and $now <= $ending_time) return true; return false; }