Added default timezone
This commit is contained in:
parent
0811968718
commit
48519014fc
1 changed files with 6 additions and 0 deletions
|
@ -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__
|
||||||
|
|
Loading…
Reference in a new issue