[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 11:28:59 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.8                    
Component:  Date/Time     |     Version:  2.7                    
 Severity:  major         |    Keywords:  has-patch tested commit
--------------------------+-------------------------------------------------

Comment(by hakre):

 Replying to [comment:6 DD32]:
 > Ok, and Hakre, Didnt notice the $gmt variable i guess? No need for a
 tiemstampgmt, as the 2 options currently are supposed to be:
 timestamp+gmt=false(in blog timezone), or timestamp+gmt=true(in gmt
 timezone)

 Jup confirmed, voerseeing that properly. for timestamp with $gmt == true
 time() is used but this must be GMT. same for the offset option, time() is
 used which fails when it is _not_ GMT.

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


More information about the wp-trac mailing list