Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Fix for timezones (Code inside)*

ameliafpsameliafps New
edited November 2011 in Vanilla 2.0 - 2.8
This fix worked for me. I'm on US EST, -5hours from GMT.

In class.googlecalendarfeed.php look for
function processfeed($xml,$title,$name,$path) {

Insert the following:
$zone=3600*n; // n = the time difference from GMT // example: EST is -5hours from GMT -> 3600*-5 // example: CET is +1hour from GMT -> 3600*1

A few lines down, find:
$startTime = gmdate("g:ia", $when); $startDate = gmdate("j F Y", $when);

Add $zone to $when to make the adjustment:
$startTime = gmdate("g:ia", ($when + $zone)); $startDate = gmdate("j F Y", ($when + $zone));

Save the file.

I hope that works for others.
Sign In or Register to comment.