From bb3df46536bb53e59054e88d78f1a9f829436ca5 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 17 Aug 2012 23:40:09 +0000 Subject: [PATCH] We no longer need to check function_exists() for date_default_timezone_set(). props Gary-J, j-idris. fixes #20501. git-svn-id: https://develop.svn.wordpress.org/trunk@21544 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-settings.php b/wp-settings.php index 726e1b06b0..2db338b2e0 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -32,9 +32,8 @@ wp_check_php_mysql_versions(); @ini_set( 'magic_quotes_runtime', 0 ); @ini_set( 'magic_quotes_sybase', 0 ); -// Set default timezone in PHP 5. -if ( function_exists( 'date_default_timezone_set' ) ) - date_default_timezone_set( 'UTC' ); +// WordPress calculates offsets from UTC. +date_default_timezone_set( 'UTC' ); // Turn register_globals off. wp_unregister_GLOBALS();