[wp-trac] [WordPress Trac] #51130: Events displayed in venue timezone instead of user's
WordPress Trac
noreply at wordpress.org
Wed Oct 14 18:18:11 UTC 2020
#51130: Events displayed in venue timezone instead of user's
--------------------------------------+-----------------------
Reporter: iandunn | Owner: iandunn
Type: enhancement | Status: assigned
Priority: high | Milestone: 5.6
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------
Comment (by iandunn):
In [changeset:"49145" 49145]:
{{{
#!CommitTicketReference repository="" revision="49145"
Community Events: Trim events by Unix timestamp for accuracy.
The `date` and `end_date` fields are ''WP'' timestamps representing the
venue's local time. As of meta:changeset:10270 (#meta4480), new
`start_unix_timestamp` and `end_unix_timestamp` values are available,
providing a proper ''Unix'' timestamp in the UTC timezone. Using those is
more precise, and removes the time window where the event has expired but
still appears in the Events Widget.
To simplify the function, it now only accepts and returns the events
themselves, rather than the entire response body.
See #51130
See #meta4480
Related: https://make.wordpress.org/core/2019/09/23/date-time-
improvements-wp-5-3/
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51130#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list