Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When linking to an event's details the time is displayed in GMT instead of my specified timezone.
I looked in the api and &ctz=".$timezone
is required if you want to specify the timezone or google defaults to gmt.
So to test a fix I added that to the link ($item['link']) in the gcal_events module. Roughly around line 743 (I still have my fixes in there overriding simplepie's removal of futureevents=true).
if ($item['link']) {
/*-*/ $temp_event=str_replace("#URL#", $item['link'], str_replace("#URL#", variable_get('gcal_events_template_url_'. $which_block,
/*+*/ $temp_event=str_replace("#URL#", $item['link']."&ctz=".$timezone, str_replace("#URL#", variable_get('gcal_events_template_url_'. $which_block, GCAL_EVENTS_DEFAULT_TEMPLATE_URL), $temp_event));
}
else {
$temp_event=str_replace("#URL#", "", $temp_event);
}
Now the events are all displayed in the event's timezone on google, just as they are on the site.
Comments
Comment #1
CaptDan CreditAttribution: CaptDan commentedI had this same issue, and the fix above worked for me. Thanks!
Comment #2
mhm CreditAttribution: mhm commentedSame problem, but this didn't fix it for me.
Comment #3
jdwfly CreditAttribution: jdwfly commenteddup of #421684: Timezone issues based on currently logged in google account