Opened 5 years ago
Closed 5 years ago
#47463 closed enhancement (fixed)
Refactor from using invalid timestamps in event filtering
Reported by: | Rarst | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.3 | Priority: | low |
Severity: | minor | Version: | |
Component: | Date/Time | Keywords: | has-patch |
Focuses: | Cc: |
Description
Event API sends WordCamp and Meetup data with date/time lacking time zone information (see https://meta.trac.wordpress.org/ticket/4480 )
The current implementation of filtering for upcoming events tries to parse that into timestamps (which doesn't really work) and determine upcoming events by comparing against "WP timestamp" summed with time zone offset (which isn't really appropriate for the task, or ever).
Patch simplifies the logic to date comparison and removes reliance on WP timestamp.
Parent issue #40657
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 45886: