I think this could be an issue with different time zones.
I will have a look at it.
Michael,
I think you can change db.php, around line 70, you need to alter the upcoming section to use the WordPress current_time function, instead of the system date. I don’t know if the syntax is correct, but I think this is the right spot.
My host uses GMT, but my word press is set to pacific time, that’s a significant difference.
else { // upcoming
// get only events in the future
// $range_start = date( ‘Y-m-d’ );
$range_start = date( ‘Y-m-d’, current_time( ‘mysql’ ));
$range_end = ‘9999-12-31’;
}
Thanks for your help. I will test it and include it in the next version.
The correct line is:
$range_start = date('Y-m-d', current_time('timestamp'));
I have already included it in the development version, so the fix is included in the next version.
Thanks for your help.
Hi, after updating db.php with the above I still see all events listed under upcoming. So also events for which the start date is already in the past now.
I would expect under upcoming to see the events with a start date/time in the future only.
Any idea what could be the issue and how to fix this?
Tx!!
Hi, I just noticed one thing! After midnight the events disappeared correctly form the upcoming event list. So when date changes it works and the problem seems to be in the current_time(‘timestamp’). Any idea?
Tx!