Support

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

Viewing 2 reply threads


olov

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: https://openspaceconsulting.com/open-space-consulting-aktiviteter/aktiviteter-anmalan/?ee=159

This event starts on 21-11-01 and ends on 21-11-03, and has this Ical link:
https://openspaceconsulting.com/?iCal=true&current_year=2021&current_month=04&current_day=29&current_time=092819&event_id=159&ee_reg_id=v7qe8pf9uvijldtf8ggthkqdv6-608a75bc14be94.57821970&contact_email=thomas@openspaceconsulting.com&start_year=2021&start_month=11&start_day=01&start_time=100000&end_year=2021&end_month=11&end_day=01&end_time=163000&event_summary=1-3/11.%20Whole%20Person%20Process%20Facilitation&ee_reg_url=https://openspaceconsulting.com/open-space-consulting-aktiviteter/aktiviteter-anmalan/?ee=159&site_url=https://openspaceconsulting.com&organization=Open%20Space%20Consulting&location

The same can be seen at all multi day events at this page:
https://openspaceconsulting.com/open-space-consulting-aktiviteter/aktiviteter-anmalan/

Wordpress/plugin info
WordPress Version:
5.7
PHP Version:
7.4.16
MySQL Version:
5.5.5
Event Espresso Version:
3.1.37.18.P
WordPress adress (URL):
https://openspaceconsulting.com
WordPress Content-mapp:
/home/openspac/public_html/wp-content
Webbplats-adress (URL):
https://openspaceconsulting.com


Tony

  • 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:

\wp-content\plugins\event-espresso\includes\functions\ical.php

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'];


olov

April 29, 2021 at 8:35 am

Hello!
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!
/olov

Viewing 2 reply threads

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.

Event Espresso