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

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 23 22:02:39 UTC 2009


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

Comment(by Denis-de-Bernardy):

 Replying to [comment:13 dd32]:
 > > Sure. But then again we make the assumption in WP (in current_time())
 that time() returns UTC time indeed. The suggested patch actually enforces
 this.
 >
 > And in the case where servers have defined it correctly?

 In this case, you get #9588, #8662, etc.

 > I'm all for closing this.. But i just think theres a reason why PHP
 doesnt default to UTC, because it knows this ISNT UTC time.

 If we close, we'd do so on grounds it would only ever happen on poorly
 configured servers (such as, *cough*, localhost). But again, we then have
 the above two mentioned tickets, and more.

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


More information about the wp-trac mailing list