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