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

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 28 18:20:15 GMT 2009


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

Comment(by ryan):

 In general, gmdate() seems to need the timestamps passed to it based off
 of time().  The cases where we add offset to time() and pass that to
 gmdate() look like they work. gmdate() appears to be compensating for the
 server's offset, so we shouldn't pass something that already compensates
 for it..

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


More information about the wp-trac mailing list