[wp-meta] [Making WordPress.org] #4480: Event API returns date/time information without timezone
Making WordPress.org
noreply at wordpress.org
Fri May 31 06:40:33 UTC 2019
#4480: Event API returns date/time information without timezone
-------------------------------+---------------------
Reporter: Rarst | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: API | Resolution:
Keywords: reporter-feedback |
-------------------------------+---------------------
Comment (by Rarst):
> It seems that the times aren't tracked with an explicit TZ, and are
instead assumed to be in the local time at the venue.
> Given that context, what's the correct way to handle this?
Correct way would be to figure out and serve time zone.
For display purposes exclusively local time would be fine. But when it
starts getting used for comparison (and it does in core) that leads to
pretty bizarre code and logic.
WP is used to throw local times at everything and a lot of it is severely
bugged as result. Let's move this in a right direction.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/4480#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list