WordPress.org

Ready to get started?Download WordPress

Forums

ICS Calendar
Time Zones/Daylight Savings Time (3 posts)

  1. tbhceo
    Member
    Posted 2 years ago #

    I've searched the forums to find a solution to this problem, but none have helped.

    I've added the "putenv" code in the ics-importer.php, I've made sure my WordPress installation is in the right timezone (New York City), I've made sure the Google Calendar feed has the right time zones listed.

    Still, the event times are displaying with an hour later than scheduled. (For example: see see here. The Nov. 9th event actually starts at 7:30pm and the Nov. 12th event starts at 5:30pm.)

    Any ideas would be GREATLY appreciated. Thanks.

    http://wordpress.org/extend/plugins/wordpress-ics-importer/

  2. pander
    Member
    Posted 2 years ago #

    I have the same problem. ICS Calendar shoud respect time zones which are in the .ics file.

  3. pander
    Member
    Posted 2 years ago #

    Temporary and very very bad workaround that doesn't take daylight savings into account. Add these lines after line 218 in ics-functions.php (foreach ($events as $event) {) to deduct one hour:

    $event['StartTime'] -= mktime(1, 0, 0) - mktime(0, 0, 0);
    $event['EndTime'] -= mktime(1, 0, 0) - mktime(0, 0, 0);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic