• Resolved Tom Streeter

    (@tomstreetergmailcom)


    This plugin is exactly what we need for our site, but we’re hosted in the Mountain Time Zone and we need the time to be Eastern Time Zone. The ICS source is Google Calendar. The time zone is set correctly in the calendar, but the plugin doesn’t pick that up. Times are given in Mountain time. There’s a cryptic note in import_ical.php (clip below is on line 199):

    if ($Z == 'Z') {
        $TS = gmmktime($H,$M,$S,$m,$d,$y);
      } else {
        // Problem here if server in different timezone
        $TS = mktime($H,$M,$S,$m,$d,$y);
      }

    Which seems to me qualifies as a ‘known issue.’

    Any fix?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Tom Streeter

    (@tomstreetergmailcom)

    Turns out there is a clean fix outlined in this thread:

    http://wordpress.org/support/topic/170263?replies=3

    Put the following line at the top of the ics-importer.php file using the editor:

    putenv("TZ=America/New_York");

    (remember to deactivate the plug-in first!)

    Check out the thread cited to get more detailed instructions, including where to find the correct timezone identifier for your time zone.

    NOTE: Until there’s a setting in the plug-in to designate timezone, you’ll have to re-add this line each time the plug-in updates. Not a big deal.

    (I did receive one other solution that actually fixed the issue with the file I identified in my original query. While the code was solid, the kind person who shared that solution and I both agree that the solution outlined here is easier to maintain).

    This is perfect. I have closed my thread thanks to this. Thank you.

    This should be fixed in the newest version of the plugin. It will use your default wordpress timezone to determine the time.

    Nevermind I fixed it in the WordPress settings for Timezones. Everything works now!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: ICS Calendar] Any way to handle server in another time zone’ is closed to new replies.