[wp-trac] [WordPress Trac] #9588: time() is not GMT time()

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 25 16:21:39 UTC 2009

#9588: time() is not GMT time()
  Reporter:  Denis-de-Bernardy  |        Type:  defect (bug)           
    Status:  reopened           |    Priority:  normal                 
 Milestone:  2.9                |   Component:  Date/Time              
   Version:  2.8                |    Severity:  normal                 
Resolution:                     |    Keywords:  has-patch needs-testing

Comment(by Otto42):

 Replying to [comment:18 Denis-de-Bernardy]:
 > as much as I agree on the diagnosis, this ticket and #9586 and #8662
 were opened precisely because time() is not a gm time and it occasionally
 has side effects because WP makes the assumption that it is.

 Agreed. Anywhere in WordPress where it's using time() or date() and
 assuming that that is GMT is wrong. The new timezone handling code for
 PHP5 installs makes this assumption invalid. All those should definitely
 be changed to gmtime() and gmdate().

Ticket URL: <http://core.trac.wordpress.org/ticket/9588#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list