The Events Calendar Doesn’t Display Today’s Event on Upcoming Events Page

We’ve seen this issue a couple times on a few different sites. It seems to come and go and is always a major issue when it happens. The Events Calendar plugin will stop displaying today’s event on the upcoming events page and move it to the past events page which leads to chaos if you’re in the process of promoting that event. Here is a simple fix to correct this problem, remember to update this code each time you upgrade the plugin.

On line 15 of this file:
/wp-content/plugins/the-events-calendar/the-events-calendar.class.php

Replace this:

const DBDATETIMEFORMAT = 'Y-m-d G:i:s';

With this:

const DBDATETIMEFORMAT = 'Y-m-d';

Comments are closed.