[wp-trac] Re: [WordPress Trac] #4856: Timezone issues

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 29 16:04:41 GMT 2007


#4856: Timezone issues
---------------------+------------------------------------------------------
 Reporter:  Rauchg   |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.2.3    
Component:  General  |      Version:           
 Severity:  normal   |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by Otto42):

 Replying to [ticket:4856 Rauchg]:
 > However, if time() is not really returning the number of seconds till
 GMT, but to the timezone set in the server computer, it returns an
 incorrect value.

 This should not happen. Time is absolute, and time() should ''always''
 return the current time, measured in the number of seconds since the Unix
 Epoch (January 1 1970 00:00:00 GMT). That number of seconds does not
 change depending on what time zone you're in, it is an absolute figure for
 any given moment.

 So, if time() gives you a wrong answer, then you have your server set to
 the incorrect time or PHP configured incorrectly or something else is
 wrong.

 I recommend closing this as wontfix. This is a PHP or server configuration
 issue, not a WordPress issue.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4856#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list