[wp-trac] [WordPress Trac] #44985: timezone_string should be valid when offset time zone mode is used

WordPress Trac noreply at wordpress.org
Wed May 22 14:27:25 UTC 2019


#44985: timezone_string should be valid when offset time zone mode is used
------------------------------------------+------------------------------
 Reporter:  Rarst                         |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Date/Time                     |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------

Comment (by Rarst):

 I gave this some more thought and introducing unexpected return format to
 a very established code path feels risky to me.

 Instead I am of mind to introduce `wp_timezone_string()` (in addition to
 `wp_timezone()` returning object) as explicit opt-in upgrade path for
 existing code.

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


More information about the wp-trac mailing list