aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-05-29 14:26:23 +0200
committerArthurHoaro <arthur@hoa.ro>2016-06-11 09:30:56 +0200
commitd93d51b213bd3bda9bfa67d23c31dcce5a8b7fc0 (patch)
treeb954e2cb2732a1b1efe8213db48e48cd044873b6 /index.php
parentb74b96bfbd0b778ac50fd17f5e107c51435b1678 (diff)
downloadShaarli-d93d51b213bd3bda9bfa67d23c31dcce5a8b7fc0.tar.gz
Shaarli-d93d51b213bd3bda9bfa67d23c31dcce5a8b7fc0.tar.zst
Shaarli-d93d51b213bd3bda9bfa67d23c31dcce5a8b7fc0.zip
Set the default timezone in index.php
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index 780dc581..aad65559 100644
--- a/index.php
+++ b/index.php
@@ -113,6 +113,8 @@ RainTPL::$cache_dir = $conf->get('config.RAINTPL_TMP'); // cache directory
113$pluginManager = PluginManager::getInstance(); 113$pluginManager = PluginManager::getInstance();
114$pluginManager->load($conf->get('config.ENABLED_PLUGINS')); 114$pluginManager->load($conf->get('config.ENABLED_PLUGINS'));
115 115
116date_default_timezone_set($conf->get('timezone', 'UTC'));
117
116ob_start(); // Output buffering for the page cache. 118ob_start(); // Output buffering for the page cache.
117 119
118// In case stupid admin has left magic_quotes enabled in php.ini: 120// In case stupid admin has left magic_quotes enabled in php.ini: