move timezone set into core bootstrap.
This commit is contained in:
parent
8b2f3e8421
commit
5b6b156b41
|
@ -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.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -57,4 +57,11 @@
|
||||||
if (is_numeric($bundle)) $bundle = $value;
|
if (is_numeric($bundle)) $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'));
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue