move timezone set into core bootstrap.

This commit is contained in:
Taylor Otwell
2012-02-06 09:35:28 -06:00
parent 8b2f3e8421
commit 5b6b156b41
3 changed files with 9 additions and 9 deletions

View File

@@ -57,4 +57,11 @@ foreach ($bundles as $bundle => $value)
if (is_numeric($bundle)) $bundle = $value;
Bundle::register($bundle, $value);
}
}
/**
* Register the default timezone for the application. This will
* be the default timezone used by all date functions through
* throughout the entire application.
*/
date_default_timezone_set(Config::get('application.timezone'));

View File

@@ -7,13 +7,6 @@
*/
require 'core.php';
/**
* Register the default timezone for the application. This will be the
* default timezone used by all date / timezone functions throughout
* the entire application.
*/
date_default_timezone_set(Config::get('application.timezone'));
/**
* Register the PHP exception handler. The framework throws exceptions
* on every error that cannot be handled. All of those exceptions will