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

WordPress Trac noreply at wordpress.org
Fri Dec 2 00:02:49 UTC 2016


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

 1. Create a clean install
 2. Go to Settings > General
 3. Change time zone to any string that is not UTC+-
 4. View `gmt_offset` in `wp_options`, it will be empty

 == Notes ==

 This appears to happen here:
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/options.php#L177

 If `gmt_offset` is empty, then `current_time` always returns UTC time.
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/functions.php#L61

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


More information about the wp-trac mailing list