[wp-meta] [Making WordPress.org] #4480: Event API returns date/time information without timezone
Making WordPress.org
noreply at wordpress.org
Tue Aug 25 00:16:59 UTC 2020
#4480: Event API returns date/time information without timezone
-------------------------+-----------------------
Reporter: Rarst | Owner: iandunn
Type: enhancement | Status: accepted
Priority: high | Milestone:
Component: Events API | Resolution:
Keywords: |
-------------------------+-----------------------
Comment (by iandunn):
🤔
Core only sends the timezone when the user manually enters a city to
search for. Most of the time the events are fetched via IP geolocation,
and Core doesn't send the TZ then (for privacy).
When the API does get the TZ, it uses it to disambiguate searches, like
Portland, Orgeon vs Portland, Maine. Once it returns the events in that
city, though, they're cached by Core and shared by all users who request
events in that city. In most cases they'll probably be the same TZ, but
there are some edge cases that feel significant, like users who are on
opposing sides of a timezone border, and those who are traveling.
It feels safer to give Core the absolute data, and then it can format it
based on the current user's timezone.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/4480#comment:11>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list