From 9086873804d41cf5e5b0f56fb76622bb26e74d49 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sat, 28 Jun 2025 20:39:26 +0800 Subject: [PATCH] refactor: `Console::showHeader()` call `date()` only once --- system/CLI/Console.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system/CLI/Console.php b/system/CLI/Console.php index 325eaa7b455c..89415e265134 100644 --- a/system/CLI/Console.php +++ b/system/CLI/Console.php @@ -59,10 +59,9 @@ public function showHeader(bool $suppress = false) } CLI::write(sprintf( - 'CodeIgniter v%s Command Line Tool - Server Time: %s UTC%s', + 'CodeIgniter v%s Command Line Tool - Server Time: %s', CodeIgniter::CI_VERSION, - date('Y-m-d H:i:s'), - date('P'), + date('Y-m-d H:i:s \\U\\T\\CP'), ), 'green'); CLI::newLine(); }