[wp-trac] Re: [WordPress Trac] #9758: GMT-relative timezones inverted

WordPress Trac wp-trac at lists.automattic.com
Fri May 8 18:59:30 GMT 2009


#9758: GMT-relative timezones inverted
-------------------------+--------------------------------------------------
 Reporter:  andy         |        Type:  defect (bug)   
   Status:  new          |    Priority:  highest omg bbq
Milestone:  2.8          |   Component:  Date/Time      
  Version:               |    Severity:  blocker        
 Keywords:  needs-patch  |  
-------------------------+--------------------------------------------------

Comment(by MattyRob):

 This appears to be affecting the timezone_string options when the TimeZone
 is set using Etc:GMT rather than location. It appears to be due to the
 wp_timezone_override_offset()

 I have had a busy day and can't fully explain this but I think it is
 because we are comparing an offset time to GMT rather than a timezone to
 GMT so the offset is coming back in the correct magnitude but negative.

 At the very end of this function the offset is converted into hours by
 dividing by 3600. If this is changed to a division by -3600 (note the
 negative) then it works for the Etc:GMT settings and break the other
 options!

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


More information about the wp-trac mailing list