[wp-trac] [WordPress Trac] #10940: Default timezone should be set for PHP5

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 23 13:54:34 UTC 2010


#10940: Default timezone should be set for PHP5
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |        Owner:        
     Type:  defect (bug)  |       Status:  closed
 Priority:  high          |    Milestone:  2.9   
Component:  Date/Time     |      Version:  2.9   
 Severity:  critical      |   Resolution:  fixed 
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by eitch):

 I upgraded WordPress from 2.8.4a to 2.9.2 (MU) and began getting affected
 by this patch (on wp-settings.php). Before, when I created a new blog, the
 gmt_offset was set automatically based on my current server timezone (PHP
 5.1, system timezone -3 and date.timezone configured too), now wp-
 settings.php override my timezone and by default gmt_offset blog option is
 created (function populate_options() in wp-admin/includes/schema.php) with
 UTC time by default.

 This is an annoyance for me because every time a blog is created, the
 setting must be set to the correct gmt_offset. I checked 3.0 and it's
 still there.

 Are there any solutions for this? I understood that the patch eliminates
 annoying warning messages on newer php versions and closes strange
 behaviors on other functions like time() and gmtime(), but are there any
 workarounds or smarter ways to do this? Maybe commenting the lines with
 date_default_timezone_set on wp-settings.php? Are there any drawbacks on
 this approach? :)

 Or really, all user in a multi-user installation must always set the
 gmt_offset? :(

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


More information about the wp-trac mailing list