I am currently in the process of putting together a website aimed at an international community of players of a game i like.
On this website, i am hosting a calendar showing the events of that game.
This calendar is backed by .ics files referring to the utc at which these events occur.
My goal is to display these events in my calendar not at utc or a set timezone, but instead make the events display in the correct timezone for whoever loads my page.
I already did some coding, and can now retrieve an accurate user timezone in php by
Factory::getApplication()->getSession()->get('time')
in php. This is already a DateTimeZone object. Obviously it needs to be guarded in case my code to initialize the session cookies have not been loaded yet, but that doesn't matter for now.
Now. I have my events in UTC, and i have the timezone in which i would want them displayed (dynamically, per-user). Does anyone have a good tip on where i would have to modify the jevents code to modify the events time according to client timezone after they are being read from the databank? I have tried a couple different things, with different outputs so far:
1) nothing happend
2) the timezone would only be adjusted when calling the ics refresh link; if a friend in EST called the ics refresh it would also display as EST for me in CET
3) Events would shift by a certain time but not jump to a new date (e.g. start at 13pm....)
I did not yet manage to create ideal scenario of a client specific shift.
I am very aware this might be outside of what jevents is supposed to do, but if there is any chance to get this working i am willing to attempt it.