[wp-trac] [WordPress Trac] #12894: mktime inconsistent between 2.9 and 3.0

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 7 23:42:34 UTC 2010


#12894: mktime inconsistent between 2.9 and 3.0
-------------------------------+--------------------------------------------
 Reporter:  arena              |        Owner:  arena   
     Type:  defect (bug)       |       Status:  reopened
 Priority:  normal             |    Milestone:          
Component:  General            |      Version:  3.0     
 Severity:  normal             |   Resolution:          
 Keywords:  reporter-feedback  |  
-------------------------------+--------------------------------------------
Changes (by arena):

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


Comment:

 Replying to [comment:5 scribu]:
 > So what was the issue?

 still don't know, i made several attempts to have my plugin code as clean
 as possible and the error remains.
 in 2.9 for same date mktime and gmmktime gives different timestamps
 mktime( 0, 0, 0, 4, 8, 2010 ) : 1270677600
 gmmktime( 0, 0, 0, 4, 8, 2010 ) : 1270684800
 in 3.0 for same date mktime and gmmktime gives SAME timestamps
 mktime( 0, 0, 0, 4, 8, 2010 ) : 1270684800
 gmmktime( 0, 0, 0, 4, 8, 2010 ) : 1270684800

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


More information about the wp-trac mailing list