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

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 5 02:00:27 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.7.2                 
Component:  General       |     Version:  2.7                   
 Severity:  major         |    Keywords:  has-patch dev-feedback
--------------------------+-------------------------------------------------

Comment(by hakre):

 Well, the according docblock does not state that 'timestamp' should return
 the current time 'in GMT', it must return the current timestamp. I can not
 see GMT anywhere there.

 I would suggest to add another $type = 'timestampgmt' that will return
 what you are looking for. buddypress (and other plugins) can use it then.
 otherwise those plugins coul wrap this function and create such a
 calculation on their own.

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


More information about the wp-trac mailing list