Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, core.php tried to set the default timezone to the value stored in global configuration, with error suppression. Due to [[1]], this does not actually prevent the notice from appearing with PHP 8. Refactored the code to get the system's default time zone if it is not defined in configuration. A PHP notice is still thrown if the specified timezone is not valid, as documented in the code. Also, since PHP 5.4, date_default_timezone_get() no longer throws a warning so the '@' operator is not needed anymore. Fixes #27796 [1]: https://bugs.php.net/bug.php?id=80548
- Loading branch information