diff --git a/setup/ajax.dataloader.php b/setup/ajax.dataloader.php index f80359fba..e39e6ff03 100644 --- a/setup/ajax.dataloader.php +++ b/setup/ajax.dataloader.php @@ -47,6 +47,7 @@ require_once(APPROOT.'/setup/setuppage.class.inc.php'); require_once(APPROOT.'/setup/moduleinstaller.class.inc.php'); ini_set('max_execution_time', max(3600, ini_get('max_execution_time'))); // Under Windows SQL/backup operations are part of the timeout and require extra time +date_default_timezone_set('Europe/Paris'); // Just to avoid a warning if the timezone is not set in php.ini $sMemoryLimit = trim(ini_get('memory_limit')); if (empty($sMemoryLimit)) diff --git a/setup/index.php b/setup/index.php index 4f33da42f..cc2cae1a5 100644 --- a/setup/index.php +++ b/setup/index.php @@ -36,6 +36,7 @@ ini_set('max_execution_time', max(240, ini_get('max_execution_time'))); // While running the setup it is desirable to see any error that may happen ini_set('display_errors', true); ini_set('display_startup_errors', true); +date_default_timezone_set('Europe/Paris'); // Just to avoid a warning if the timezone is not set in php.ini ///////////////////////////////////////////////////////////////////// // Fake functions to protect the first run of the installer diff --git a/setup/setuppage.class.inc.php b/setup/setuppage.class.inc.php index 0fe74d64c..0c6448da3 100644 --- a/setup/setuppage.class.inc.php +++ b/setup/setuppage.class.inc.php @@ -30,7 +30,6 @@ require_once(APPROOT."setup/runtimeenv.class.inc.php"); define('INSTALL_LOG_FILE', APPROOT.'/log/setup.log'); -date_default_timezone_set('Europe/Paris'); class SetupPage extends NiceWebPage { public function __construct($sTitle)