Commit 5b6b156b authored by Taylor Otwell's avatar Taylor Otwell

move timezone set into core bootstrap.

parent 8b2f3e84
...@@ -110,7 +110,7 @@ return array( ...@@ -110,7 +110,7 @@ return array(
| 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.
| |
*/ */
......
...@@ -58,3 +58,10 @@ foreach ($bundles as $bundle => $value) ...@@ -58,3 +58,10 @@ foreach ($bundles as $bundle => $value)
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'));
\ No newline at end of file
...@@ -7,13 +7,6 @@ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment