From 6d3221742dc4df25f1f159e42e69cd2ecbee1ea5 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Fri, 25 Feb 2022 01:48:25 +0100 Subject: [PATCH] Remove redundant timezone setting. (Now in bootstrap.php.) --- include/compat.inc.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/compat.inc.php b/include/compat.inc.php index 5fae1e4a..ac26a1ed 100644 --- a/include/compat.inc.php +++ b/include/compat.inc.php @@ -418,12 +418,6 @@ if (!isset($serendipity['serendipityPath'])) { $serendipity['indexFile'] = 'index.php'; -if (function_exists('date_default_timezone_get')) { - // We currently offer no Timezone setting (only offset to UTC), so we - // rely on the OS' timezone. - @date_default_timezone_set(@date_default_timezone_get()); -} - /** * In PHP 5.4, the default encoding of htmlspecialchar changed to UTF-8 and it will emit empty strings when given * native encoded strings containing umlauts. This wrapper should to be used in the core until PHP 5.6 fixes the bug.