[wp-trac] [WordPress Trac] #63493: Timezone string doesn't return in REST API /wp-json/wp/v2/settings

WordPress Trac noreply at wordpress.org
Wed May 28 12:05:26 UTC 2025


#63493: Timezone string doesn't return in REST API /wp-json/wp/v2/settings
-------------------------------------------------+-------------------------
 Reporter:  phakphumvis                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-test-info needs-     |     Focuses:  rest-api
  testing needs-unit-tests                       |
-------------------------------------------------+-------------------------

Comment (by rmccue):

 This behaviour is intentional; if the timezone is set via `gmt_offset`, we
 want to clearly convey this to clients, rather than a potentially
 inaccurate timezone.

 For example, if the site is set to UTC+1, that would currently (with DST)
 map to `Europe/London`, but during winter would map to `Europe/Paris`. We
 cannot disambiguate between these, so providing that information clearly
 to clients is intentional.

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


More information about the wp-trac mailing list