From 23710436447779bdadc94cd097e98320bf27a4f6 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 2 Dec 2009 17:50:07 +0000 Subject: [PATCH] Set default timezone. Props Denis-de-Bernardy. fixes #10940 git-svn-id: http://svn.automattic.com/wordpress/trunk@12315 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-settings.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-settings.php b/wp-settings.php index b52c3bb0b..a0cbf9f4f 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -18,6 +18,9 @@ if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < a set_magic_quotes_runtime(0); @ini_set('magic_quotes_sybase', 0); +if ( function_exists('date_default_timezone_set') ) + date_default_timezone_set('UTC'); + /** * Turn register globals off. *