From f74d5ad2d44db8cad640ed642bee260f13b58a19 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 23 Nov 2011 08:30:55 -0600 Subject: [PATCH] Set timezone in core file. --- laravel/core.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/laravel/core.php b/laravel/core.php index b2b5952d..bb37aebb 100644 --- a/laravel/core.php +++ b/laravel/core.php @@ -139,6 +139,13 @@ Autoloader::$mappings = array( '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