From 313a6e20443b42926576a43eee361f25e81c7d38 Mon Sep 17 00:00:00 2001 From: Sasha Anastasi Date: Mon, 29 May 2023 08:51:52 +1200 Subject: [PATCH] replace deprecated strftime function for Moodle 4.2 --- classes/local/cli/waitforit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/local/cli/waitforit.php b/classes/local/cli/waitforit.php index 10e5534..047e65b 100644 --- a/classes/local/cli/waitforit.php +++ b/classes/local/cli/waitforit.php @@ -129,7 +129,7 @@ class waitforit extends clibase { return; } - $time = strftime('%F %T %Z'); + $time = \core_date::strftime('%F %T %Z'); printf("[%s] %s\n", $time, $message); }