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
This commit is contained in:
Thomas Ingles 2024-04-30 02:03:27 +02:00 committed by Alex Tselegidis
parent 2e9bcacbfc
commit 1788f209eb

View file

@ -530,7 +530,7 @@ class Timezones
*/
public function get_default_timezone(): string
{
return 'UTC';
return date_default_timezone_get();
}
/**