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

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 19:17:44 UTC 2010


#11665: UTC Time Zone Set in wp-settings affects items in header
--------------------------+-------------------------------------------------
 Reporter:  iacas         |       Owner:                         
     Type:  defect (bug)  |      Status:  new                    
 Priority:  normal        |   Milestone:  3.0                    
Component:  Date/Time     |     Version:  2.9                    
 Severity:  normal        |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------

Comment(by ryan):

 Calling date() without passing current_time() when wanting the blog's
 local time is not portable across all the versions of PHP WP supports.
 The fact that it kinda/sorta worked for 2.8 on recent versions of PHP5 was
 pretty much an accident. :-)  current_time() itself needs some fixing (see
 #11672 and #9588), but fixing it so that it works reliably across all
 supported environments may mean forcing the timezone to UTC and requiring
 the use of current_time() when you want to get the blog's time.

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


More information about the wp-trac mailing list