[wp-trac] [WordPress Trac] #20501: Remove the check if date_default_timezone_set() exists (was: Timezone bug in wp-settings.php)

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 17 20:36:27 UTC 2012


#20501: Remove the check if date_default_timezone_set() exists
------------------------------+------------------------------
 Reporter:  j-idris           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Date/Time         |     Version:  3.3.1
 Severity:  trivial           |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch commit
 * severity:  normal => trivial


Comment:

 In `options-general.php`, there's no check ([13702]): [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.1/wp-admin/options-
 general.php#L184

 `wp_check_php_mysql_versions()` runs earlier: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.1/wp-settings.php#L28

 As far as I can see, there's no way to disable the DateTime class in PHP
 5.2+ (unlike JSON, see #18015)
 so the patch seems good.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20501#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list