ThemeBoy / SportsPress

An open source league statistics plugin for WordPress created by ThemeBoy.
Other
152 stars 98 forks source link

iCal calendar problems #434

Closed sgurlt closed 1 year ago

sgurlt commented 2 years ago

Hi,

I am currently facing two issues with the iCal Calendar:

  1. After moving the site from my stage to production, the calendar does not show any results using the iCal URL
  2. The iCal calendar showed the wrong event times (seems like timezone related)

The WordPress timezone is set to “Berlin”: https://prnt.sc/Hx2v8vkQUBI_

The Sportspress timezone is set to “Berlin”: https://prnt.sc/MnAmNW5kki2K

Here is my next upcoming event (23.04.2022 15:00 / 3pm) https://www.wiesbaden-phantoms.de/event/wiesbaden-phantoms-vs-saarland-hurricanes/

This is what the event looks like in WordPress: – https://prnt.sc/TxY4OSaNwhWShttps://prnt.sc/Mzi65oo6wJW_

This is what the calendar looks like in WordPress (I don’t understand why all dates are shown as “27. September 2021” btw.): https://prnt.sc/AkaGwE7S4X_L

Problem number 1 – No Events added to the Google calendar at all (Production site): http://www.google.com/calendar/render?cid=webcal%3A%2F%2Fwww.wiesbaden-phantoms.de%2Fcalendar%2Fkalender%3Ffeed%3Dsp-ical

Problem number 2 – Events showing the wrong times: http://www.google.com/calendar/render?cid=webcal%3A%2F%2Fredesign.wiesbaden-phantoms.de%2Fcalendar%2Fkalender%3Ffeed%3Dsp-ical

Help is very welcome 🙂

Best regards, Sebastian

danis039 commented 2 years ago

Same issues here.

robjr14 commented 2 years ago

Same issues for me. Same date shown for all entries in backend and google calendar doesn't show the correct time. Time zone for wordpress/sportspress is set to Toronto (Canada - EST) but yet if sportspress calendar shows a 7h30pm start time for a match, google calendar will show it as 4h30pm - Important to note that sportspress is the only calendar import that messes up the times.

lusky3 commented 2 years ago

Just to throw some confusion in: I do not have this issue.

The link imported into my Google Calendar lists the game a 9:30PM. image

Which matches what's on the site. image

My server time is in EDT #date Thu May 5 17:37:34 EDT 2022

Wordpress is too. image

And Google Calendar image

edit: 1 more value forgot about, the PHP data. It's still in UTC.

date/time support | enabled -- | -- timelib version | 2020.03 "Olson" Timezone Database Version | 2021.5 Timezone Database | internal Default timezone | UTC
savvasha commented 2 years ago

The wrong date issue was fixed with https://github.com/ThemeBoy/SportsPress/commit/f3fab902f404d48de992378be28ad1163cf02b96