From 48519014fc62e5ac8a72799109abfa0199da42e8 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 10 Oct 2014 19:45:22 +0200 Subject: [PATCH] Added default timezone --- src/Bootstrap.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Bootstrap.php b/src/Bootstrap.php index 71daaa4d..14e9360c 100644 --- a/src/Bootstrap.php +++ b/src/Bootstrap.php @@ -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__