• Resolved CherylS

    (@cheryls)


    One event has the wrong date: Winston Summer Nite Cruise, and it’s only wrong on the Home page where I inserted the Events Widget. No matter what date I enter into the actual event, it’s add a day. The event in question is on July 8, yet it shows July 9 on the Home page.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jyoti Bhandari

    (@jyoti197)

    Hi @cheryls,
    
    Sorry for the inconvenience and thanks for the detecting an issue. please follow the below shared code to fix this issue.
    
    Go to main folder of plugin:- events-widgets-pro\includes\functions.php
    Go to line number 414 and delete from 414 to 425 and paste the code given below in place of that code.
    
    $event = $post_id;
    $format???????? = get_option( 'time_format');
    $start_time = tribe_get_start_date( $event,false, $format );
    $end_time?? = tribe_get_end_date( $event,false,? $format? );
    if ( $tm_format == '24h' ) {
    $format = 'H:i';
    $start_time =? date($format, strtotime($start_time));
    $end_time =? date($format, strtotime($end_time));
    } elseif ( $tm_format == '12h' ) {
    $format = 'h:i a';
    } else {
    $format = get_option( 'time_format' );
    }
    $start_date = tribe_get_start_date( $event, false, $custom_date_format );
    $end_date?? = tribe_get_end_date( $event, false, $custom_date_format );
    
    Please refer to the image attached which shows the final code you should have in that lines click here.
    
    Hope this helps.
    
    Thanks & Regards
    Thread Starter CherylS

    (@cheryls)

    Thank you. That seems to have worked. Is that something that will change with the next update?

    Plugin Support Jyoti Bhandari

    (@jyoti197)

    Hi @cheryls,

    Don’t worry we will fix this issue in upcoming version of our plugin.

    Thanks & Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Event Date Incorrect’ is closed to new replies.