[wp-trac] [WordPress Trac] #17840: Fatal Error on General Settings when Timezone string is invalid.

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 19 08:24:02 UTC 2011


#17840: Fatal Error on General Settings when Timezone string is invalid.
--------------------------+--------------------
 Reporter:  westi         |       Owner:  westi
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  3.2
Component:  Date/Time     |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by westi):

 Note with the above fix the user who has set the dodgy data still gets
 these Warnings and Notices:

 {{{
     WARNING: wp-includes/functions.php:4082 - timezone_open() [function
 .timezone-open]: Unknown or bad timezone (Garbage)
     WARNING: wp-includes/functions.php:126 - timezone_open() [function
 .timezone-open]: Unknown or bad timezone (Garbage)
     WARNING: wp-includes/functions.php:127 - date_create() expects
 parameter 2 to be DateTimeZone, boolean given
     WARNING: wp-includes/functions.php:130 - date_format() expects
 parameter 1 to be DateTime, boolean given

     NOTICE: wp-admin/options-general.php:176 - date_default_timezone_set()
 [function.date-default-timezone-set]: Timezone ID 'Garbage' is invalid
 }}}

 I would be happy to leave fixing these till 3.3 :)

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


More information about the wp-trac mailing list