[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 22:06:30 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):

 Looks like time() is expected to be UTC, which matches the docs: "Returns
 the current time measured in the number of seconds since the Unix Epoch
 (January 1 1970 00:00:00 GMT)."

 Likewise, date() and gmdate() expect timestamps to be UTC.

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


More information about the wp-trac mailing list