Home Forums Event Espresso Premium EE3 – ICAL end date is wrong (same as start date)

EE3 – ICAL end date is wrong (same as start date)

Posted: April 29, 2021 at 3:34 am


April 29, 2021 at 3:34 am

The ical end for events isn’t picked up, but is set to the same date as the start date.

Event example:

This event starts on 21-11-01 and ends on 21-11-03, and has this Ical link:

The same can be seen at all multi day events at this page:

Wordpress/plugin info
WordPress Version:
PHP Version:
MySQL Version:
Event Espresso Version:
WordPress adress (URL):
WordPress Content-mapp:
Webbplats-adress (URL):


  • Support Staff

April 29, 2021 at 5:46 am

Hi there,

Thank you for the report, I’ve created a ticket to fix this.

If you are comfortable with PHP you can fix this on your site in:


Around line 106/107 you should have:

$end_date = !empty($meta['start_date_unformatted']) ? $meta['start_date_unformatted'] : $meta['start_date'];

Change that to:

$end_date = !empty($meta['end_date_unformatted']) ? $meta['end_date_unformatted'] : $meta['end_date'];


April 29, 2021 at 8:35 am

Thanks for a quick and informative respons. I’ve changed the code and now all is good. I actually had this code at line 106:

$end_date = !empty($meta[‘end_date_unformatted’]) ? $meta[‘start_date_unformatted’] : $meta[‘start_date’];

All the best!

The support post ‘EE3 – ICAL end date is wrong (same as start date)’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Do NOT follow this link or you will be banned from the site!