[wp-trac] Re: [WordPress Trac] #6285: Choose timezone without doing
math
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 21 04:40:36 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):
To demonstrate how such functionality would work, I coded up a quick
plugin. You can find it here:
http://ottodestruct.com/wpstuff/timezone.php
It requires PHP 5.1 or up. Features:
* Won't activate if your version of PHP cannot support it (this could be
prettier, admittedly).
* If you have PHP 5.2 or up, it will give you extra information about
when DST will start/end (needs the timezone_transitions_get function in
5.2 to work).
* Overrides the gmt_offset entirely with a pre_option. You'll notice that
when it's activated and set, you will be unable to change the offset
setting and have it stick.
--
Ticket URL: <http://trac.wordpress.org/ticket/6285#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list