Setting the default date timezone to make sure systems without a properly configured php.ini can run GitList

This commit is contained in:
Klaus Silveira
2012-10-30 23:57:47 -02:00
parent 90d9fd4909
commit 2abf80e333

View File

@@ -5,6 +5,11 @@
* https://github.com/klaussilveira/gitlist
*/
// Set the default timezone for systems without date.timezone set in php.ini
if (!ini_get('date.timezone')) {
date_default_timezone_set('UTC');
}
require 'vendor/autoload.php';
$app = require 'boot.php';
$app->run();