WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
[resolved] Event Times Offset (9 posts)

  1. NoxPointe
    Member
    Posted 1 year ago #

    I'm having a problem where the time of my events when displayed on my website are offset by an incorrect number of hours. Both my Google Calendar and my blog are in Chicago time. The curious thing is that I have the same feed set in the All in One Calendar as well as the amr Events List and the amr Events List displays correctly.

    Testing Blog: http://noxpointe.com/testzone/wordpress/
    Google Calendar: https://www.google.com/calendar/embed?src=champaign.city%40gmail.com&ctz=America/Chicago
    ICS Feed: https://www.google.com/calendar/ical/champaign.city%40gmail.com/public/basic.ics

    I would much rather use the All in One Calendar if I could. Does anyone know why it is interpreting the dates and times wrong? I have a hunch it has to do with UTC offset markup in the ICS file.

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  2. AMGill
    Member
    Posted 1 year ago #

    I have the same issue and can't seem to get a good answer from Time.ly

  3. vnp_nl
    Member
    Posted 8 months ago #

    Same here, in the LITE version.

    It has to do with the ICS.

    If you open it you'll see for example:
    See
    DTSTART:20131105T213000Z
    DTEND:20131105T223000Z

    For some reason, time zone calculations go bad because of the 'Z' at the end of these lines. I'm definately not an ICS guru, but after I deleted the 'Z' using notepad, the troubles with the ICS were over and importing showed the correct times.

    It's a bad, bad, workaround:
    If you go the plugin editor, select AiO, click on all-in-one-event-calendar/lib/global-functions.php', then 'all-in-one-event-calendar/lib/iCalcreator-2.16/iCalcreator.class.php'.
    Do a search/replace on
    = 'Z'
    by
    = '' (two single quotes)

    Then your stream/ICS doesn't have the Z anymore.
    Make sure you backup the iCalcreater.class.php before, you'll surely be able to kill the plugin. Also, it 'll probably break other timezone stuff, but if you don't need that anyway, that's no problem. Hopefully they'll fix this.

  4. nicola.peluchetti
    Member
    Plugin Author

    Posted 8 months ago #

    The problem is that your calendar must be in the same timezone of the imported ICS file as time is stored as UTC. This will change in 2.0 where we will store also the timezone of the original event but for now the timezone of wordpress and the timezone of the exported files must match.
    This is the same in all versions, BTW.

  5. NoxPointe
    Member
    Posted 8 months ago #

    The timezones do match in my case. Looking in the ics file though, it seems as some events are marked as using the timezone demarked in the ics and some of the events are marked as being in GMT which is what the Z differentiates between. I don't know why some of the events are CST and some are GMT. It's all coming from Google Calendar.

  6. vnp_nl
    Member
    Posted 8 months ago #

    Same here, timezones match:

    Times in WP are in UTC+1, or Europe/Amsterdam to be more precise. The server, the event and the iCal clients are all in this timezone.

    It doesn't matter if I download a single event or subscribe to a calendar, the offset stays.
    It is not related to daylight saving time, I tested this. I have the feeling the '+1' is calculated twice somewhere.

  7. euphoriant
    Member
    Posted 8 months ago #

    I'm new to this plugin and I think I have the same problem. On the blog the times in the calendar are prefect, but when I export the calendar to my google calendar all the times are wrong.

    I'm in the Central time zone (-6 hours) and that's what I have in WP and the calendar is working great on the blog. When I export to Google Calendar and the times change to 0 hours, everything is indicated as if it's 6 hours earlier than it really is.

    Any suggestions on how to fix this on my end?

    Thanks!

  8. esmi
    Forum Moderator
    Posted 8 months ago #

    If you require assistance then, as per the Forum Welcome, please post your own topic. This topic references an older version of WordPress.

  9. euphoriant
    Member
    Posted 8 months ago #

    Okay, sorry about that.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic