[wp-trac] [WordPress Trac] #36591: discourage the setting of the offset in the options and that way always have a timezone string in options

WordPress Trac noreply at wordpress.org
Tue Jul 26 11:19:30 UTC 2016


#36591: discourage the setting of the offset in the options and that way always
have a timezone string in options
-------------------------------------------------+-------------------------
 Reporter:  pbearne                              |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Date/Time                            |  Review
 Severity:  normal                               |     Version:
 Keywords:  has-patch dev-feedback has-unit-     |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------
Changes (by pbearne):

 * keywords:   => has-patch dev-feedback has-unit-tests


Comment:

 Hi Guys

 here is a patch for this

 If a UTC offset is set then the UTC options are shown. But if a timezone
 string is set then the UTC options are hidden.

 This behavior can be overridden with a new filter "show_utc_offsets" set
 to true to show and false to hide.

 An unittest is included in patch

 Thoughts and Comments

 Paul

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


More information about the wp-trac mailing list