diff --git a/index.php b/index.php index 234ab84..bed5d93 100644 --- a/index.php +++ b/index.php @@ -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(); \ No newline at end of file