[wp-meta] [Making WordPress.org] #4480: Event API returns date/time information without timezone
Making WordPress.org
noreply at wordpress.org
Tue Aug 25 16:22:12 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):
Replying to [comment:15 Rarst]:
> Is there now better time zone information than seconds offset to use?
For meetup events,
[https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html
/wp-content/plugins/official-wordpress-events/official-wordpress-
events.php?rev=9854&marks=613#L601 we only have the offset in the
database], because that's the only TZ info that
[https://www.meetup.com/meetup_api/docs/:urlname/events/#list Meetup.com's
`:urlname/events` endpoint provides].
For WordCamps, [https://central.wordcamp.org/wp-
json/wp/v2/wordcamps/3098988 we only have the WP timestamp, with `00:00`
for the time], so really just the local date. We could add TZ info here,
but I think that's out of scope for this ticket, and a lower priority.
[[br]] [[br]]
> Seems confusing that `date` field is a string, but `date_utc` is a
timestamp.
That's a great point. I was trying to maintain consistency w/ the existing
fields, but clarity is more important.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/4480#comment:17>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list