From 09d6ef9c2cf7260a6436d99c4534dbd9b88dc7c5 Mon Sep 17 00:00:00 2001 From: Stepanov Vadym Date: Mon, 18 Jul 2016 09:43:43 +0300 Subject: [PATCH] Fix wrong dayOfWeek interpretation --- CronTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CronTask.php b/CronTask.php index f550f54..60ed5c0 100644 --- a/CronTask.php +++ b/CronTask.php @@ -438,7 +438,7 @@ public function canRun() 'hour' => $date['hours'], 'day' => $date['mday'], 'month' => $date['mon'], - 'dayOfWeek' => $date['wday'] - 1, + 'dayOfWeek' => $date['wday'], ); $canRun = array();