• Resolved paperbagcowboy

    (@paperbagcowboy)


    I love your product, I think it’s easy to use and it looks good. But, just now I went to my site to look at upcoming events, and the event I wanted to see is not there. The event doesn’t occur for another 2 hours, but it’s already off the upcoming list.
    My WordPress is set to use my current time zone, so that shouldn’t be a problem.
    Also, I would like it if it left upcoming events on for the whole day, since there’s no duration or end time on events.

    https://www.ads-software.com/plugins/event-list/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author mibuthu

    (@mibuthu)

    I think this could be an issue with different time zones.
    I will have a look at it.

    Thread Starter paperbagcowboy

    (@paperbagcowboy)

    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’;

    }

    Plugin Author mibuthu

    (@mibuthu)

    Thanks for your help. I will test it and include it in the next version.

    Plugin Author mibuthu

    (@mibuthu)

    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.

    Thread Starter paperbagcowboy

    (@paperbagcowboy)

    Thank you Michael

    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!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Upcoming Events’ is closed to new replies.