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¤t_year=2021¤t_month=04¤t_day=29¤t_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
April 29, 2021 at 5:46 am
Add New Note to this Reply
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
Add New Note to this Reply
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