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
This commit is contained in:
Andrew Nacin 2012-08-17 23:40:09 +00:00
parent c43e008f54
commit bb3df46536
1 changed files with 2 additions and 3 deletions

View File

@ -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();