[wp-trac] [WordPress Trac] #11665: UTC Time Zone Set in wp-settings affects items in header

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 29 19:33:31 UTC 2009


#11665: UTC Time Zone Set in wp-settings affects items in header
--------------------------+-------------------------------------------------
 Reporter:  iacas         |       Owner:               
     Type:  defect (bug)  |      Status:  new          
 Priority:  normal        |   Milestone:  Unassigned   
Component:  Date/Time     |     Version:  2.9          
 Severity:  normal        |    Keywords:  utc time_zone
--------------------------+-------------------------------------------------
 The wp-settings.php file in WordPress 2.9 sets time zone to UTC, which is
 then not set to the user-specified time zone (via the wp-admin settings)
 until just after get_header().

 This causes problems for items which use the date and/or time in the
 header file, as my random header rotator does:
 http://nslog.com/2009/12/24/wordpress_29_when_is_time_zone_set

 I think that if wp-settings is going to continue to set the time zone to
 UTC by default (around line 21), then the proper, user-specified time zone
 should be set earlier than "at the end of get_header()".

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


More information about the wp-trac mailing list