[wp-trac] [WordPress Trac] #39018: gmt_offset is not set when timezone strings are used

WordPress Trac noreply at wordpress.org
Fri Dec 2 12:53:26 UTC 2016


#39018: gmt_offset is not set when timezone strings are used
--------------------------------+------------------------------
 Reporter:  jessepearson        |       Owner:
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:  4.6.1
 Severity:  normal              |  Resolution:  worksforme
 Keywords:                      |     Focuses:  administration
--------------------------------+------------------------------
Changes (by jessepearson):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Came into this with fresh eyes this morning, it appears that this filter
 exists:


 {{{
 // Timezone
 add_filter( 'pre_option_gmt_offset','wp_timezone_override_offset' );
 }}}

 This comes into play when `get_option( 'gmt_offset' )` is used. It will
 convert the timezone string into a UTC offset and return it.

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


More information about the wp-trac mailing list