#7071 closed defect (bug) (fixed)

Events aren't sorted by its time on the online events list page

Reported by: renyot's profile renyot Owned by: renyot's profile renyot
Milestone: Priority: normal
Component: Site Keywords: has-patch needs-testing


We currently have an issue with the way we sort the list of online events. The events are originally sorted by their local times stored in the database, which leads to incorrect order when viewed globally. For instance, an event happening at 4 PM in New York (20:00 UTC) should be listed after an event at 5 PM in London (17:00 UTC), but the current sorting places the London event after the New York one due to the original local time sort.

In order to rectify this, we need to sort events based on the UTC time rather than the local time. By converting each event's local time to UTC and then reordering the list, we can ensure a globally accurate chronological listing of events.

Change History (4)

#1 @renyot
13 months ago

  • Owner set to renyot
  • Status changed from assigned to accepted

This ticket was mentioned in PR #158 on WordPress/ by @renyot.

13 months ago


This PR proposes a code change that sorts all events according to their UTC time on the online events list page, to achieve a globally unified event order.

## Screenshot

Before After

## Testing Steps

  1. Apply the changes.
  2. Go to and see if the order is correct.

@renyot commented on PR #158:

13 months ago

Gonna deploy the change.

  • The function is only used within the same file ✅ .

#4 @renyot
13 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in [12667].

Note: See TracTickets for help on using tickets.