• Resolved Christian Laugesen

    (@christianlaugesen)


    Located in Denmark it would seem that eo_get_add_to_google_link() is somehow resetting the gmt_offset to create the Google Calendar Event link, but not restoring it again afterwards.

    If I use eo_get_the_start() directly before and directly after eo_get_add_to_google_link() there will be a difference, and I can’t figure out how to reset this.

    Obviously you can set the date as a variable before eo_get_add_to_google_link() and use the variable further down, but it’s a quick fix and not a viable solution.

    Does anyone how to resolve this?

    https://www.ads-software.com/plugins/event-organiser/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi Christian,

    I can verify there’s a bug here. The fix is quote simple. Inside the function eo_get_add_to_google_link() Simple replace the lines:

    $start = eo_get_the_start( DATETIMEOBJ, $event_id, null, $occurrence_id );
    $end   = eo_get_the_end( DATETIMEOBJ, $event_id, null, $occurrence_id );

    with

    $start = clone eo_get_the_start( DATETIMEOBJ, $event_id, null, $occurrence_id );
    $end   = clone eo_get_the_end( DATETIMEOBJ, $event_id, null, $occurrence_id );

    (i.e. adding clone). That should fix the problem. This will be fixed in the next update.

    Plugin Author Stephen Harris

    (@stephenharris)

    Just an update to link to the ticket: https://github.com/stephenharris/Event-Organiser/issues/203

    Plugin Author Stephen Harris

    (@stephenharris)

    2.8.3 should fix this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘eo_get_add_to_google_link’ is closed to new replies.