[wp-trac] [WordPress Trac] #10143: wp_timezone_supported returning false in PHP 5.1.6

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 13 17:13:50 GMT 2009


#10143: wp_timezone_supported returning false in PHP 5.1.6
--------------------------+-------------------------------------------------
 Reporter:  chipbennett   |       Owner:                                                                          
     Type:  defect (bug)  |      Status:  new                                                                     
 Priority:  normal        |   Milestone:  Unassigned                                                              
Component:  Date/Time     |     Version:  2.8                                                                     
 Severity:  normal        |    Keywords:  wp_timezone_supported timezone_offset_list timezone_open timezone_offset
--------------------------+-------------------------------------------------
 WordPress 2.8 installed on PHP 5.1.6, Timezone Option functionality does
 not work (wp_timezone_supported check reverts to pre-2.8 timezone option
 functionality).

 The wp_timezone_supported() function checks for the following PHP
 functions (functions.php, line 3173):

 date_default_timezone_set (requires PHP >= 5.1.0)
 timezone_identifiers_list (requires PHP >= 5.1.0)
 timezone_open (requires >= PHP 5.1.0)
 timezone_offset_get (requires PHP >= 5.1.0)

 However, in PHP 5.1.6, timzeone_identifiers_list, timezone_open, and
 timezone_offset_get appear not to be available.

 Apparently, timezone_identifiers_list
 [http://bugs.php.net/bug.php?id=34373 requires a custom compile option].

 The other two options appear to have similar issues (Date PHP4 module not
 enabled).

 Also, it appears that timezone_offset_get
 [http://bugs.php.net/bug.php?id=44742 may not work in PHP versions below
 5.2.6].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10143>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list