From 3936b4e106fb89c0d8da977b09ade36b89ca1980 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(); } /**