Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add timezone information to common calendar #19

Open
andibraeu opened this issue Jan 21, 2024 · 3 comments
Open

add timezone information to common calendar #19

andibraeu opened this issue Jan 21, 2024 · 3 comments

Comments

@andibraeu
Copy link
Member

No description provided.

@rajmanna-dev
Copy link

@andibraeu can you provide more details about this issue?

@andibraeu
Copy link
Member Author

of course:

an event needs to contain timezone information in the end, like here:

BEGIN:VEVENT
UID:https://ics.freifunk.net/termine/3905-liveausstrahlung-freifunkradio-au
 f-88vierde
DTSTAMP:20240228T105312Z
SUMMARY:Liveausstrahlung Freifunkradio auf 88vier.de
DTSTART;TZID=Europe/Berlin:20240312T200000
DESCRIPTION:Ihr könnt uns über UKW auf 88\,4 MHz in Berlin und 90\,7 MHz
 oder im Livestream auf 88vier.de hören. Parallel oder kurz nach der Ausst
 rahlung wird die Folge auch auf [unserer Website](https://radio.freifunk.n
 et) veröffentlicht und ihr könnt sie mir eurem Lieblingspodcatcher anhö
 ren.
URL;VALUE=URI:https://radio.freifunk.net
CATEGORIES:ffradio
DTEND;TZID=Europe/Berlin:20240312T203000
LOCATION:UKW
END:VEVENT

DTSTART;TZID=Europe/Berlin:20240312T200000 is the important part

If we get timezone information from a community calendar, we have to add it here, if there's no timezone, we add the default one

at the moment, events are displayed like that:

BEGIN:VEVENT
SUMMARY:ONLINE Weimarer Freifunktreffen
DTSTART:20240305T200000
DTSTAMP:20240228T105605Z
UID:https://ics.freifunk.net/termine/3898-online-weimarer-freifunktreffen
DESCRIPTION:Wir treffen uns wöchentlich und lösen Probleme, helfen Interessenten oder bi
eten Vorträge an.

Kommt in unseren [Jitsi-Raum](https://meet.weimarnetz.de/ImMaschinenraum)
LOCATION:${@var_dump(md5(802699616))};
URL:http://wireless.subsignal.org/index.php?title=Treffen
CATEGORIES:Weimar,Treffen
X-WR-SOURCE:weimarnetz
X-WR-SOURCE-URL:weimarnetz.de
END:VEVENT

We use an old copy of that ics-parser, where we did some modifications. One of them was to resolve recurring events to single events for a defined number of events. Maybe we can turn that project to use that ics-parser. (and make use of composer for example)

It's just about that part of the repo: https://github.com/freifunk/common.api.freifunk.net/tree/master/ics-collector

@TejasNangru
Copy link

@andibraeu can you assign this issue to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants