[wp-trac] [WordPress Trac] #10660: Time zone suggester based on nascent WordPress.org API call

WordPress Trac noreply at wordpress.org
Mon Sep 2 06:43:27 UTC 2019


#10660: Time zone suggester based on nascent WordPress.org API call
--------------------------------------+-----------------------------
 Reporter:  sambauers                 |       Owner:  rmccue
     Type:  feature request           |      Status:  assigned
 Priority:  normal                    |   Milestone:  Future Release
Component:  Date/Time                 |     Version:  2.8.4
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:  javascript
--------------------------------------+-----------------------------

Comment (by Rarst):

 Refreshing what's our options are at this time.

 Is the suggested endpoint dead? http://api.wordpress.org/core/ip-to-
 zoneinfo/1.0/?callback=abcd `({"errorcode":5,"errormessage":"GeoNames API
 could not be contacted"})`

 Looked at `Intl.DateTimeFormat().resolvedOptions().timeZone` and browser
 support looks good by now (except IE), but there are reports that returned
 value is incorrect/inconsistent between browsers. Also the value might not
 at all be consistent with ''PHP'' time zone, which we need. I suppose we
 could do a very low hanging fruit implementation when suggestion is made
 if JS time zone matches exactly one of PHP time zones. Anything more
 comprehensive would require us to maintain complex multi-browsing mapping
 from possible JS values to PHP ones.

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


More information about the wp-trac mailing list