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

WordPress Trac noreply at wordpress.org
Fri Aug 23 02:14:17 UTC 2019


#47463: Refactor from using invalid timestamps in event filtering
-------------------------+-----------------------------
 Reporter:  Rarst        |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  low          |   Milestone:  5.3
Component:  Date/Time    |     Version:
 Severity:  minor        |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45886" 45886]:
 {{{
 #!CommitTicketReference repository="" revision="45886"
 Date/Time: Simplify the date comparing logic in
 `WP_Community_Events::trim_events()`.

 The Events API returns event date without timezone information, so trying
 to parse it into a timestamp and compare to a WP timestamp is pointless.

 Props Rarst.
 Fixes #47463.
 }}}

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


More information about the wp-trac mailing list