From fc35bc5876fda9a4edff0d1b4d83413a77a1ce87 Mon Sep 17 00:00:00 2001 From: sam marshall Date: Thu, 23 Nov 2023 16:22:22 +0000 Subject: [PATCH] MDL-79966 core_task: NEVER_RUN_TIME did not fit in 10 digits --- lib/classes/task/scheduled_task.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/classes/task/scheduled_task.php b/lib/classes/task/scheduled_task.php index 05a08e2017b..506bb7f9052 100644 --- a/lib/classes/task/scheduled_task.php +++ b/lib/classes/task/scheduled_task.php @@ -80,9 +80,10 @@ abstract class scheduled_task extends task_base { const FIELD_DAYOFWEEK = 'dayofweek'; /** - * Time used for the next scheduled time when a task should never run. This is 3000-01-01 00:00 GMT. + * Time used for the next scheduled time when a task should never run. This is 2222-01-01 00:00 GMT + * which is a large time that still fits in 10 digits. */ - const NEVER_RUN_TIME = 32503680000; + const NEVER_RUN_TIME = 7952342400; /** @var string $hour - Pattern to work out the valid hours */ private $hour = '*';