[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 21:44:01 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):

 date_default_timezone_set() will change what gmdate() and date() output
 when given current_time().  The timestamps produced with the unpatched
 current_time() do not change with date_default_timezone_set(), however.
 They are always correct.  The two different patches get the timestamps
 wrong.

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


More information about the wp-trac mailing list