From 7197e2557fa78153eab1b17287002353dea5202c Mon Sep 17 00:00:00 2001 From: rylon Date: Tue, 25 Nov 2014 18:14:02 +0100 Subject: [PATCH] cron fix for 24 -> 1day --- cron/crontime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron/crontime.php b/cron/crontime.php index ccaac15..a617ae9 100644 --- a/cron/crontime.php +++ b/cron/crontime.php @@ -11,7 +11,7 @@ class crontime { if($day + $now_day> 31){ $next_month += 1;} $next_day = ($now_day+$day)%31;} if($hour){ - if(($hour + $now_hour)> 24){ $next_day += 1;} + if(($hour + $now_hour)>= 24){ $next_day += 1;} $next_hour = ($now_hour+$hour)%24;} if($min){ if(($min + $now_min)> 60){ $next_hour += 1;}