]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Set the default timezone in index.php
[github/shaarli/Shaarli.git] / index.php
index 780dc581bef119a3bb7535757c8ee42a444001ce..aad65559b10218773d69141af4b8867fe79645a1 100644 (file)
--- a/index.php
+++ b/index.php
@@ -113,6 +113,8 @@ RainTPL::$cache_dir = $conf->get('config.RAINTPL_TMP'); // cache directory
 $pluginManager = PluginManager::getInstance();
 $pluginManager->load($conf->get('config.ENABLED_PLUGINS'));
 
+date_default_timezone_set($conf->get('timezone', 'UTC'));
+
 ob_start();  // Output buffering for the page cache.
 
 // In case stupid admin has left magic_quotes enabled in php.ini: