• Hello,

    I have a lot of events finishing after midnight (often at 2am) and I dont wan’t to show the next day of event view

    I edited the function output_date

        function output_dates( $date_format = false, $date_separator = false, $use_site_timezone = false ){
    if( empty($date_format) ) $date_format = ( get_option('dbem_date_format') ) ? get_option('dbem_date_format'):get_option('date_format');
    if( empty($date_separator) ) $date_separator = get_option('dbem_dates_separator');
    + $timeend = strtotime($this->event_end_date . " " . $this->event_end_time);
    + $realendday = date("Y-m-d", $timeend - 3600 * 4); // Cutoff at 4am
    - if( $this->event_start_date != $this->event_end_date){
    + if( $this->event_start_date != $realendday){

    I think that a end of day cutoff setting like this would be an improvement to this plugin

    https://theeventscalendar.com/knowledgebase/using-the-end-of-day-cutoff-setting/

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • This would be a great feature. +1 from me!

    If you go to Event > Settings and then go to the Pages tab then click on Event List/Archives. You’ll see the following options under General Settings: “Are current events past events?” and you can select Yes or No. The comment says:

    By default, events that have an end date later than today will be included in searches, set this to yes to consider events that started ‘yesterday’ as past.

    I think changing this option to “Yes” will do what you are trying to do (but I could be wrong).

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.