mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-02-19 04:57:44 +01:00
Setting the default date timezone to make sure systems without a properly configured php.ini can run GitList
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user