Added default timezone

This commit is contained in:
Marcin Kurczewski 2014-10-10 19:45:22 +02:00
parent 0811968718
commit 48519014fc

View file

@ -10,6 +10,7 @@ final class Bootstrap
public static function init($startTime)
{
self::$startTime = $startTime;
self::setTimezone();
self::turnErrorsIntoExceptions();
self::initAutoloader();
}
@ -19,6 +20,11 @@ final class Bootstrap
return self::$startTime;
}
private static function setTimezone()
{
date_default_timezone_set('UTC');
}
private static function initAutoloader()
{
require(__DIR__