[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:11:21 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 Otto42):

 Hah. What's really odd there, is that the unpatched one, with the correct
 TZ support, is the one giving you the correct answers. You're in
 America/Chicago, which is right now about 5 pm. After you removed the
 date_default_timezone_set line, date() started giving you the wrong info,
 2 hours earlier. This suggests that your server is in the Pacific
 Timezone, I'd bet. San Fran? ;)

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


More information about the wp-trac mailing list