Support » Plugin: The Events Calendar » iCal Export using wrong time zone in Outlook during Daylight Savings Time

  • Resolved jmer1234


    There is a bug in the iCal export that keeps Outlook from calculating the correct time zone during daylight savings time.

    There needs to be a forward slash before the time zone id in the zone definition :


    This can be fixed by editing wp-content/plugins/the-events-calendar/src/Tribe/iCal.php and changing lines 267 and 268 from

    $item[] = ‘DTSTART;TZID=’ . $tz . ‘:’ . $tzoned->start;
    $item[] = ‘DTEND;TZID=’ . $tz . ‘:’ . $tzoned->end;

    $item[] = ‘DTSTART;TZID=/’ . $tz . ‘:’ . $tzoned->start;
    $item[] = ‘DTEND;TZID=/’ . $tz . ‘:’ . $tzoned->end;

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Caroline


    Hi @jmer1234,

    Thanks for the report! What you describe does appear to be a legitimate bug, so I’ve gone ahead and logged a ticket in our system to check it out. We’ve noted this thread and will be sure to follow up once a fix is available!

    Thank you again! 🙂

    That seems to work!!! I’ve been going crazy thinking it was something on my end. So with this fix and the plugin, the calendar entry works correctly in Outlook 365 desktop version on Windows 10 64-bit.

    Plugin Contributor geoffgraham


    Heck yeah! Thanks for letting us know and we’re stoked to hear all is working well. 🙂

    I’m glad I could help a little.

    It looks like this bug still exists. If I update iCal.php as indicated, will it revert back to the buggy code when I update The Events Calendar for other maintenance reasons?

    My experience is that it does revert the bug if you update the plugin. I have been diligent about going in and fixing the bug every time I update the plugin.

    Thanks, jmer1234. @geoffgraham, can we get this addressed so this is not necessary?

    Could this be the reason why our iCalendar imports via Aggregator are in Pacific time even though source and WP install say Eastern time? We can’t figure out why

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘iCal Export using wrong time zone in Outlook during Daylight Savings Time’ is closed to new replies.