[wp-trac] Re: [WordPress Trac] #8662: current_time('timestamp') doesn't return the correct timestamp value

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 28 19:32:31 GMT 2009


#8662: current_time('timestamp') doesn't return the correct timestamp value
--------------------------+-------------------------------------------------
 Reporter:  hudatoriq     |       Owner:  hudatoriq              
     Type:  defect (bug)  |      Status:  new                    
 Priority:  high          |   Milestone:  2.9                    
Component:  Date/Time     |     Version:  2.7                    
 Severity:  major         |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------

Comment(by ryan):

 I'm testing directly against current_time(). 'mysql' always looks good
 with wp_current_time.diff or with no patch at all.  'timestamp' differs
 between wp_current_time.diff and no patch by the offset selected in
 general settings. wp_current_time.diff displays correctly when date() is
 used(), incorrectly when gmdate() us used. strtotime() on a mysql
 timestamp yields the same results as 'timestamp' with
 wp_current_time.diff.  I'm thinking wp_current_time.diff is correct.

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


More information about the wp-trac mailing list