• Resolved morganvpi

    (@morganvpi)


    I’m having difficulty with the tz over-ride function. The source feed I’m using can be found here https://www.yorktownsports.org/main/teamschedule/id/48504/seasonid/4537390 When I pull the feed in without the tz parameter, I’m getting a time that is 5 hours early (suggesting that the correct time zone for this feed is GMT – as I’m on the East Coast USA). When I set to Europe/London or Europe/Paris, the time is shifted 10 hours forward, rather than 5. So I thought perhaps my local time zone was being incorrectly read, and deducing from the tz parameter that Europe/London as 5 hours ahead of my target time, I tried America/New_York, which should have moved the time back 5 hours to the correct time, but in fact, moved it back 10 hours again. I’m unclear on why the tz parameter when used for London and then used for New York would show a 10 hour disparity when it should only be 5. It also appears that some of the other cities listed in the php references are not recognized by the parameter.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author room34

    (@room34)

    Hi… can you check that URL you provided for the feed? It loads a regular web page, not an ICS feed. I did see a Subscribe button on that page, but that requires login so I’m not able to load it into my test calendar.

    It would be helpful to get the exact content of your shortcode. If you prefer not to share it here, you can email it to the address on the plugin’s admin page.

    Thanks!

    Thread Starter morganvpi

    (@morganvpi)

    Right, forgot about the login…..
    I’m pulling three from the same place….

    Here’s my shortcode with everything….and thanks for the quick response!

    [ics_calendar url=webcal://ical.schedulestar.com/fans/?uuid=2dabd19c-7137-11eb-b3e1-128274baf4cd|webcal://ical.schedulestar.com/fans/?uuid=0794996b-7138-11eb-b3e1-128274baf4cd|webcal://ical.schedulestar.com/fans/?uuid=2214729e-7138-11eb-b3e1-128274baf4cd title=”2020/2021 Yorktown High School Football Schedule” description=”Yorktown Sports FEED” color=”#4B9CD3 #808080 #FFFFFF”

    Plugin Author room34

    (@room34)

    Thanks… when I put this into my test site, the times seem to be correct. For instance, the game on Feb. 22 is coming up as 6 PM with my site’s default timezone (America/Chicago). If I change it to America/New_York, I get 7 PM, which I assume is the actual time of the game. If I switch to Europe/London, I get 12 midnight on the 23rd, which again seems to be correct.

    I did see that on your site it’s showing as 2 PM on the 22nd, which is pretty odd… it’s off by 5 hours, but in the opposite direction from what it would be for Europe/London or default UTC time.

    My best guess at this point is that it has to do with your site’s general timezone setting, or a conflict with another plugin.

    Go to Settings > General and make sure “New York” is selected under Timezone. It should not be set to a UTC offset value, as these can cause issues with core PHP and WordPress date/time functions.

    If that doesn’t resolve the issue, you may want to review the other plugins you have installed. If any of them do things related to events/dates/etc. they may be doing something else that’s conflicting with ICS Calendar. Temporarily deactivate those plugins to see if that resolves the issue, and if so, let me know which plugin(s) seemed to cause the conflict, and I can investigate further.

    Thread Starter morganvpi

    (@morganvpi)

    Ok, I’ll dig in further, but just as a related data point, I used the plugin on another page with a different feed without issue….

    https://yhsboosters.org/field-hockey-calendar/

    wouldn’t the conflict with another plugin be universal?

    Plugin Author room34

    (@room34)

    On an unrelated note, I see that the event lists are displaying bullets (which are overlapping into the previous day/off the left edge). I’ll make a small CSS change in the next update that will resolve that.

    Plugin Author room34

    (@room34)

    @morganvpi Yes I would expect a plugin conflict to be universal, although the issue probably does have something to do with the feeds themselves, if they’re coming from different sources. There are a lot of inconsistencies in the implementation of the iCalendar protocol in different systems.

    An issue with your site’s timezone setting though could possibly affect one feed but not another, especially if they’re coming from different source software.

    Thread Starter morganvpi

    (@morganvpi)

    ok. I confirmed that the site setting is New York. Now to find the offending plugin ??

    Plugin Author room34

    (@room34)

    Ha… well I’m not sure it’s a plugin conflict, but I’m not sure what else it would be. But since the times were correct when I tested it on my site, I’d look there next.

    One other thing you might want to try, just for testing to narrow down the issue, would be to set up separate calendars with the 3 individual feeds that you’ve got combined into one here, and see if the problem happens on all of them or not.

    Thread Starter morganvpi

    (@morganvpi)

    Ok, this won’t help anyone else, but I was using a page that previously had a calendar on it (ME Calendar for those asking). I disabled that plugin to no avail. I also rectified a Time Zone overwrite function within Sucuri Security, again to no avail. I decided to try a New Page just to see if the issue had any issue with Elementor editor or the page and lo and behold the clean page solved the problem – whatever it was. The mysteries of WP persist. Thanks again for your help!

    Plugin Author room34

    (@room34)

    Are you also using a caching plugin? I think this combination of factors — especially if caching was also involved — could possibly lead to what you were experiencing.

    Anyway, I’m glad you were able to sort it out!

    Thread Starter morganvpi

    (@morganvpi)

    Yes I was, and I’ll keep that in mind if anything fishy shows up again!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘tz function not working properly’ is closed to new replies.