• Resolved spherman

    (@spherman)


    Thanks again for a great plugin.

    This one is weird.

    When you add the events individually from a single event for the google calendar, the times on the event match up.

    When you add the whole calendar to google calendar, the times are all off by an hour.

    The WordPress setting is set for Los Angeles time as are all the individual events. The Events Calendar is set to “Use the site-wide time zone everywhere.

    Is there a fix for this? Or can you tell me to look for something I am missing?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Abz

    (@abzlevelup)

    Hi @spherman, thanks for reaching back to us. Appreciate the kind words here.

    That’s definitely weird, we highly recommend using the location-based timezone. As it is more accurate. Could you double check each event is set properly? https://theeventscalendar.com/knowledgebase/k/working-with-time-zones/

    I would suggest installing this free Extension for The Events Calendar, Allow Only Location-Based Timezones for Events, to ensure that UTC offsets are never used in your events, which may help to reduce confusing time outputs. https://theeventscalendar.com/knowledgebase/k/working-with-time-zones/

    Moreover, as always, please try it out on a staging site, and please have a working backup of your website.

    Let me know how it goes and how would you like to proceed.

    Best,
    Abz

    • This reply was modified 2 years, 7 months ago by Abz.
    Thread Starter spherman

    (@spherman)

    Follow up: The time issue seemed to resolve itself. I suspect that the calendar feed takes time to refresh.

    Ultimately, I could not get the subscribe to calendar feature to work the way we want it to. We hid that feature in favor of subscribing to individual events only.

    Plugin Support Abz

    (@abzlevelup)

    Hi @spherman, that’s weird, but it is good that it is now working. Appreciate you letting me know.

    I see. Sorry to hear about this. Perhaps this article could help you as well, with the heading Altering the Single Event Export Behavior: https://theeventscalendar.com/knowledgebase/k/exporting-events/.

    Hiding is also an option if it doesn’t work as you need, as found in the same article above.

    Please do not hesitate to bump a new ticket on our way. Have a great week ahead.

    Best,
    Abz

    Thread Starter spherman

    (@spherman)

    Sadly, I had to hide it. We altered the add to calendar to use the excerpt instead of the description, but we could not get it to work for the whole calendar.

    Plugin Support Abz

    (@abzlevelup)

    Hi @spherman, sorry to hear about this one. Could you share more information about what you’re trying to accomplish here? I would ask our team if it is something we could do or point you in the right direction.

    Best,
    Abz

    Thread Starter spherman

    (@spherman)

    The time issue fixed itself. I assume that it just needed time to update after I changed the time zone settings.

    We were able to create a plugin that uses the excerpt instead of the description when you add a single event to the calendar. We could not get it to use the excerpt when adding the whole calendar. We went with AddEvent to achieve that goal for the whole calendar.

    Because our events require more layout customization for the calendar itself, having the excerpt available to use for the calendars like google makes sense. I wish it was a feature on your program.

    Here is a link to the plugin we made.

    https://webeditor.com/the-events-calendar-content-to-excerpt/the-events-calendar-content-to-excerpt-0.1.1.zip

    We also customized the list of events to show the excerpts instead of the full descriptions as well.

    Here is the customized single-event.php that uses the excerpt that goes in [theme]/tribe-events

    https://webeditor.com/the-events-calendar-content-to-excerpt/single-event.php

    We want the subscribe to the whole calendar to use the same excerpt as the single event does in this case.

    Plugin Support Abz

    (@abzlevelup)

    Hi @spherman, thanks for getting back to me here. I see, it seems like this would require more customization on your end and template override to have all the descriptions to use the excerpt sitewide. However, I would check with our devs if there’s a workaround to have the excerpt in adding to the calendar (add to calendar).

    I’d get back to you as soon as I hear from them.
    Have a great day.

    Best,
    Abz

    Plugin Support Abz

    (@abzlevelup)

    Hi @spherman, appreciate your patience here. One of our devs suggested this snippet here (note that this would probably need some tidying to what you’re trying to accomplish) but it could look something like this:

    The description gets truncated and encoded – via the format_event_details_for_url() function.

    add_filter(
    	'tec_views_v2_single_event_gcal_link_parameters',
    	function( $pieces, $event ) {
    		
    		$excerpt = get_the_excerpt( $event );
    		
    		$pieces['details'] = tribe( Tribe\Events\Views\V2\iCalendar\Links\Google_Calendar::class )->format_event_details_for_url( $excerpt, $event );
    		
    		return $pieces;
    	},
    	10,
    	2
    );

    Let us know if this helps.

    Best,
    Abz

    Plugin Support Abz

    (@abzlevelup)

    Hey @spherman, this thread has been inactive for a while, so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up, and we’d be happy to help.

    Cheers,
    Abz

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Time is off when subscribing to the whole calendar on google’ is closed to new replies.