[wp-trac] [WordPress Trac] #47463: Refactor from using invalid timestamps in event filtreing

WordPress Trac noreply at wordpress.org
Mon Jun 3 05:46:29 UTC 2019


#47463: Refactor from using invalid timestamps in event filtreing
-------------------------+-----------------------------
 Reporter:  Rarst        |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  low          |  Milestone:  Awaiting Review
Component:  Date/Time    |    Version:
 Severity:  minor        |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47463>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list