[wp-trac] [WordPress Trac] #18146: Add user-level timezone setting

WordPress Trac noreply at wordpress.org
Wed Jun 10 16:25:26 UTC 2015


#18146: Add user-level timezone setting
-------------------------------+-----------------------------
 Reporter:  RanYanivHartstein  |       Owner:
     Type:  feature request    |      Status:  reopened
 Priority:  normal             |   Milestone:  Future Release
Component:  Users              |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  needs-patch        |     Focuses:
-------------------------------+-----------------------------

Comment (by swissspidy):

 After talking to @ocean90 at WordCamp Cologne about the recent user
 language efforts, I've been looking into this again.

 I updated the previous patch that now does the following:

 * Add a new timezone string to the `user-edit.php` screen. Options are
 saved to two usermeta fields ( `gmt_offset` and `timezone_string`, just
 like in core).
 * As a proof-of-concept, a `wp_timezone_override_user_offset` function is
 used on the edit screen to filter the `gmt_offset` option to respect the
 user's setting.

 Thoughts:

 * There's lots of similar code for the timezone field. Consolidate?
 * How can we best override the times to use the user's timezone if
 available? Obviously, we already need to do this in order to show the
 correct time next to the profile field.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18146#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list