[wp-trac] Re: [WordPress Trac] #6285: Choose timezone without doing math

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 20 21:21:10 GMT 2008


#6285: Choose timezone without doing math
----------------------------+-----------------------------------------------
 Reporter:  markjaquith     |        Owner:  anonymous
     Type:  enhancement     |       Status:  new      
 Priority:  low             |    Milestone:  2.6      
Component:  Administration  |      Version:  2.5      
 Severity:  minor           |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by Otto42):

 Viper007: The city list is standardized, albeit updated every so often:
 http://en.wikipedia.org/wiki/Zoneinfo
 http://en.wikipedia.org/wiki/List_of_zoneinfo_timezones

 What's more, PHP can even produce it on demand:
 http://php.net/manual/en/function.timezone-identifiers-list.php

 When it comes to timezones and handling daylight savings time, the
 zoneinfo method is the One True Way(tm).

 However, after looking closely at 2.5's method of handling this, I believe
 this could be handled by a plugin in the right way. Essentially, I'd hook
 a filter onto the gmt_offset option, and replace it with the offset as
 calculated by the timezone functions (if they were available).

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


More information about the wp-trac mailing list