Set default timezone if not defined

pull/1/head
Thomas Metois 2016-06-02 15:12:27 +02:00
parent 3873d5fcb6
commit 6bf6c5a4af
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,9 @@ if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['RE
/** /**
* Default Timezone * Default Timezone
*/ */
date_default_timezone_set('Europe/Luxembourg'); if(date_default_timezone_get() != ini_get('date.timezone')){
date_default_timezone_set('Europe/Luxembourg');
}
// Setup autoloading // Setup autoloading
require 'init_autoloader.php'; require 'init_autoloader.php';