[wp-trac] Re: [WordPress Trac] #5337: Wrong timezone with comment_time and the_time since DST ended

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 12 09:52:18 GMT 2007


#5337: Wrong timezone with comment_time and the_time since DST ended
----------------------------------------+-----------------------------------
 Reporter:  jrawle                      |        Owner:  anonymous
     Type:  defect                      |       Status:  new      
 Priority:  normal                      |    Milestone:  2.4      
Component:  General                     |      Version:  2.3.1    
 Severity:  normal                      |   Resolution:           
 Keywords:  time date timezone dst utc  |  
----------------------------------------+-----------------------------------
Changes (by jrawle):

  * keywords:  => time date timezone dst utc
  * milestone:  2.3.2 => 2.4

Comment:

 From the PHP manual http://www.php.net/mktime :

 is_dst
     This parameter can be set to 1 if the time is during daylight savings
 time (DST), 0 if it is not, or -1 (the default) if it is unknown whether
 the time is within daylight savings time or not. If it's unknown, PHP
 tries to figure it out itself. This can cause unexpected (but not
 incorrect) results.

 The parameter is deprecated in PHP 5.1.0 and "the new timezone handling
 features should be used instead."

 For servers in the UK, it seems PHP is "figuring out" that they are on
 British time in the summer, but in the winter it gets it slightly wrong
 and assumes the machine is permanently on UTC (hence UTC not GMT).

 Perhaps this should be addressed in Wordpress along with other issues
 surrounding timezones, for example automatic DST?

 Other timezones could be affected if PHP makes the wrong guess as to the
 timezone.

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


More information about the wp-trac mailing list