From 1788f209eb50f8b4efd85af63f51814e0b0358ad Mon Sep 17 00:00:00 2001 From: Thomas Ingles Date: Tue, 30 Apr 2024 02:03:27 +0200 Subject: [PATCH] Fix App lib Timezones::get_default_timezone() always UTC If none of the above succeed, will return a default timezone of UTC. https://www.php.net/manual/en/function.date-default-timezone-get.php --- application/libraries/Timezones.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/Timezones.php b/application/libraries/Timezones.php index 05b2e55a..e46b99e9 100644 --- a/application/libraries/Timezones.php +++ b/application/libraries/Timezones.php @@ -530,7 +530,7 @@ class Timezones */ public function get_default_timezone(): string { - return 'UTC'; + return date_default_timezone_get(); } /**