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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 24 16:14:08 UTC 2009


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

Comment(by Denis-de-Bernardy):

 On that calendar bug, using the following throughout get_calendar():

 date('Y-m-d', $unixmonth)

 instead of:

 current_time('mysql')

 seems to do the trick, but it's a clunky fix imo -- it works around the
 symptom instead of fixing the actual bug.

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


More information about the wp-trac mailing list