Google Calendar link in reoccuring events

Home Forums Calendar Products Events Calendar PRO Google Calendar link in reoccuring events

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24358
    Nick
    Participant

    In reoccurring events the tribe_get_gcal_link() function is returning the correct start date and time, but is always returning the incorrect end date as the “first” event’s end date and time. The ww_get_single_ical_link() is working fine.

    In another case when the “first” event date had past, the gmail link is returning the next valid event start date. Is that intentional?

    Thanks,
    Nick

    #24359
    Nick
    Participant

    Replicated a similar issue on the official tri.be demo:

    http://demo.tri.be/event/developer-scrum/2012-09-06/
    iCal link works fine, google calendar link add the event in March?

    #24365
    Barry
    Member

    Hi Nick, yep unfortunately that’s a known bug – the good news is it has been fixed.

    The devs tell me the fix will be available in the next release which is expected imminently.

    #24368
    Nick
    Participant

    Good to hear. I made my own patch in the mean time – probably not the best way to do it but it works.
    Updated googleCalendarLink() function starring line 397:
    [code]// Hack to load correct reocurrence dates
    $postStartDate = tribe_get_start_date( $post->ID, true, ‘F j, Y’ );
    $postEndDate = tribe_get_end_date( $post->ID, true, ‘F j, Y’ );

    // $start_date = strtotime( get_post_meta( $postId, ‘_EventStartDate’, true ) );
    $start_date = strtotime( $postStartDate );

    //$end_date = strtotime( get_post_meta( $postId, ‘_EventEndDate’, true ) . ( get_post_meta( $postId, ‘_EventAllDay’, true ) ? ‘ + 1 day’ : ”) );
    $end_date = strtotime( $postEndDate . ( get_post_meta( $postId, ‘_EventAllDay’, true ) ? ‘ + 1 day’ : ”) );
    [/code]

    #24369
    Barry
    Member

    Cool, might be useful for anyone else in need of a hot fix for this, too.

    #977649
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Google Calendar link in reoccuring events’ is closed to new replies.