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

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 2 21:11:12 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
--------------------------------+-------------------------------------------
Changes (by Otto42):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 Depends, are any of the 14 patches you posted before still using time()
 where they should be using gmtime()? If so, they still need correcting,
 since the timezone will change once the real local timezone gets loaded
 (which happens when the gmt_offset option is used).

 I think those patches you posted before still need to be examined, and
 those replaced with gm* functions if that is the underlying assumption
 behind them.

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


More information about the wp-trac mailing list