• Resolved Mimicmusic

    (@mimicmusic)


    Is there a code snippet that allow to have the leading 0 be remove on timestamp. – Example: 07:12 PM and I wanted to remove the 0 into this result 7:12 PM using this time format : g:i a. You only have date format on DATE/TIME Format Tab on Settings Page.

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

    (@jathinhelp)

    Hello,

    @mimicmusic Please follow the below steps to change the format.

    Step 1 :
    Go to wp-event-manager\wp-event-manager-template.php file

    Step 2 : Search "display_event_start_date" function

    Step 3 : change line no 663 with this
    $event_start_date = date_i18n('Y-n-j', strtotime($event_start_date));

    Step 4 : Search "get_event_start_time" this function

    Step 5 : In that change 688 with this
    $event_start_time = date_i18n('g:i a', strtotime($post->_event_start_time));

    Step 6 : Search "display_event_end_date" function

    Step 7 : change line no 750 with
    $event_end_date = date_i18n('Y-n-j', strtotime($event_end_date));

    Step 8 : Search "get_event_end_time" function

    Step 9 : change line no 775 with this
    $event_end_time = date_i18n('g:i a', strtotime($post->_event_end_time));

    Step 10 : Save file and close

    Step 11 : Open wp-event-manager/templates
    /content-event_listing.php file

    Step 11 : change line no 69 with
    echo ' '.display_date_time_separator().' ';

    Step 12 : Change line no 79 with
    echo ' '.display_date_time_separator().' ';

    Step 13 : save the file and check on front end listing page.

    Regards,

    WP Event Manager.

    Thread Starter Mimicmusic

    (@mimicmusic)

    I will check on this thoroughly @jathinhelp but other thing was when selecting a date range it doesn’t filter based on chosen date. Do you know why, I just did run some basic troubleshooting. Even the live site it doesn’t work.

    • This reply was modified 2 months ago by Mimicmusic.
    Plugin Support jathinhelp

    (@jathinhelp)

    Hello,

    @mimicmusic Please open a ticket in our support console. We will look into it from our end.

    Regards,

    WP Event Manager.

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