[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 20:00:00 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:  2.9.1                  
Component:  Date/Time     |     Version:  2.9                    
 Severity:  normal        |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------
Changes (by sirzooro):

  * keywords:  needs-patch => has-patch needs-testing


Comment:

 Attached patch should do the trick.

 From PHP documentation for `date_default_timezone_get()`:

 In order of preference, this function returns the default timezone
 by:[[BR]]
 - Reading the timezone set using the date_default_timezone_set() function
 (if any)[[BR]]
 - Reading the TZ environment variable (if non empty)[[BR]]
 - Reading the value of the date.timezone ini option (if set)[[BR]]
 - Querying the host operating system (if supported and allowed by the
 OS)[[BR]]
 - If none of the above succeed, date_default_timezone_get will return a
 default timezone of UTC.

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


More information about the wp-trac mailing list