diff --git a/classes/task/recurrent_payments.php b/classes/task/recurrent_payments.php index e0cbcbf..f6e4f56 100644 --- a/classes/task/recurrent_payments.php +++ b/classes/task/recurrent_payments.php @@ -52,6 +52,7 @@ public function get_name() { */ public function execute() { global $DB, $CFG; + mtrace('Start'); // Stage One. @@ -104,7 +105,7 @@ public function execute() { } // Stage Two. - $ctime = strtotime("+1hour"); + $ctime = strtotime(date('d-M-Y H:00',strtotime("+1hour"))); $yookassatx = $DB->get_records_sql('SELECT * FROM {paygw_yookassa} WHERE (success=1 OR success=3) ' . 'AND recurrent>0 AND recurrent < ?', [ $ctime ]); @@ -224,6 +225,7 @@ public function execute() { ); } } + mtrace('End'); } }