Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

We no longer need to check function_exists() for date_default_timezon…

…e_set(). props Gary-J, j-idris. fixes #20501.

git-svn-id: http://core.svn.wordpress.org/trunk@21544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 9d12d7df9ce0cf7996d2ceac2a5a713f36c2f75a 1 parent 26ebec2
@nacin nacin authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 wp-settings.php
View
5 wp-settings.php
@@ -32,9 +32,8 @@
@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();
Please sign in to comment.
Something went wrong with that request. Please try again.