Help Desk

Import XML reading UTC timezone instead of Los Angeles

  • Posts: 3 Topics: 3
    | Permalink

    Hi,

    My site is importing several event feeds from Eventlink and the individual events get set to the timezone of UTC which they should not. The events are actually Los Angeles (PST) timezone. (note – this is UTC -8 or UTC -7 depending on the time of year). I looked at the code of one of the .ics files and I think I see the issue but not sure what to do about it.

    BEGIN:VCALENDAR
    PRODID:-//Google Inc//Google Calendar 70.9054//EN
    VERSION:2.0
    CALSCALE:GREGORIAN
    METHOD:PUBLISH
    X-WR-CALNAME:Army and Navy Academy
    X-WR-TIMEZONE:UTC
    BEGIN:VTIMEZONE
    TZID:America/Los_Angeles
    X-LIC-LOCATION:America/Los_Angeles
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0800
    TZOFFSETTO:-0700
    TZNAME:PDT
    DTSTART:19700308T020000
    RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0700
    TZOFFSETTO:-0800
    TZNAME:PST
    DTSTART:19701101T020000
    RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
    END:STANDARD
    END:VTIMEZONE
    BEGIN:VEVENT
    

    As you can see in the code, the X-WR-TIMEZONE is set to UTC which I believe is what Events Calendar is using as the event timezone during import. What the plugin is failing to do is understand that the timezone is actually -0800 or -0700 (depending on daylight savings) which is listed below it in the TZOFFSETFROM and TZOFFSETTO.

    There are also several other spots in the code that show that this should be PDT if you look at the items for TZID, X-LIC-LOCATION, or TZNAME.

    3 attached screenshots:
    1) screenshot of an imported event on our calendar that shows the import timezone as UTC.
    2) screenshot of Event Calendar timezone settings (Events > Settings > General)
    3) screenshot of WordPress timezone is set to Los Angeles for this site under Settings > General

    Lastly, here is the .ics feed I referenced above:
    https://calendar.google.com/calendar/ical/b0bkgetcceub0ijrvqcns05q3im8dagv%40import.calendar.google.com/public/basic.ics

    Posts: 4384 Topics: 2
    | Permalink

    Hello Scott,

    Thanks for reaching out!

    I tested this and can confirm this is happening.

    I have opened a bugticket so our developers can take a look at the issue.

    I am going to set the status of this ticket to “pending fix” and we will update it once the fix is released.

    If you have any new questions or issues please create a new ticket and we’ll help you out.

    Thanks and cheers,
    Andras

    Posts: 3 Topics: 3
    | Permalink

    Hi, Any update on this issue? We are anxious to get our winter sports events up on our calendar, but cannot do so because of this issue showing the wrong time. Your help is appreciated.

    Posts: 4384 Topics: 2
    | Permalink

    Hello Scott,

    Thanks for pinging me.

    There is no update for this bug yet. When the issue was reported and I opened the bugticket our team was already well into the development of the upcoming maintenance release, which will be the last one this year, so it did not make it into that one.

    After this MR is released we will start scoping the bugs for the next one, but that will likely only happen in the new year, so I need to ask for a bit of patience from you. Thanks!

    Happy Holidays,
    Andras

    Posts: 3 Topics: 3
    | Permalink

    One additional note to this issue – We have noticed that when our iCalendar feed is imported if the event is an “All Day” event then the above issue happens where the event is converted to UTC time by plugin. If the event has a specific time (10:30am-11:30am for example) then the time is kept in Los Angeles, PST.

    Posts: 4384 Topics: 2
    | Permalink

    Hi Scott,

    Thanks for sharing that extra info.

    I ran some further tests and if the time is defined like this:

    DTSTART;TZID=America/Los_Angeles:20170807T180000

    Then the timezone will be taken into account. Otherwise it is skipped even though it is defined at the beginning.

    We’ll take a look at it.

    Andras

You must be logged in and hold an active support license to create new topics in the help desk. Please visit our products store to purchase a license.

Subscribe to Updates