Closed (duplicate)
Project:
GCal Events
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2010 at 20:57 UTC
Updated:
15 Apr 2013 at 16:49 UTC
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 commentedI had this same issue, and the fix above worked for me. Thanks!
Comment #2
mhm commentedSame problem, but this didn't fix it for me.
Comment #3
jdwfly commenteddup of #421684: Timezone issues based on currently logged in google account