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

@ -110,7 +110,7 @@
| referring to the class using its full namespace, you may simply use | referring to the class using its full namespace, you may simply use
| the alias defined here. | the alias defined here.
| |
| We have already aliased common Laravel classes to make your life easier. | We have already aliased common Laravel classes to make life easier.
| |
*/ */

View File

@ -58,3 +58,10 @@
Bundle::register($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'; 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 * Register the PHP exception handler. The framework throws exceptions
* on every error that cannot be handled. All of those exceptions will * on every error that cannot be handled. All of those exceptions will