Set timezone in core file.

This commit is contained in:
Taylor Otwell 2011-11-23 08:30:55 -06:00
parent 1867f28ad6
commit f74d5ad2d4
1 changed files with 7 additions and 0 deletions

View File

@ -139,6 +139,13 @@
'Laravel\\Session\\Drivers\\Sweeper' => SYS_PATH.'session/drivers/sweeper'.EXT,
);
/**
* Register the default timezone for the application. This will be
* the default timezone used by all date / timezone functions in
* the entire application.
*/
date_default_timezone_set(Config::$items['application']['timezone']);
/**
* Define a few global, convenient functions. These functions
* provide short-cuts for things like the retrieval of language