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

Use RDATE without PERIOD #215

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions _events/0_A meeting template.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ recurrence-exceptions:
# - yyyy-mm-dd
recurrence-additions:
# List of date-times on which the event is additionally taking place. Format:
# - start: yyyy-mm-dd hh:mm
# end: yyyy-mm-dd hh:mm
# - start: yyyy-mm-dd hh:mm
# end: yyyy-mm-dd hh:mm
# - yyyy-mm-dd hh:mm
# - yyyy-mm-dd hh:mm
location:
# Required. Must be an osm.org relation ID or the text 'online'.
location-label:
Expand Down
3 changes: 1 addition & 2 deletions _events/community-meeting.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ recurrence-rule: FREQ=MONTHLY;BYDAY=SA;BYSETPOS=2
recurrence-exceptions:
- 2022-10-08
recurrence-additions:
- start: 2022-10-22 16:00
end: 2022-10-22 17:00
- 2022-10-22 16:00
location: online
location-label: AntennaPod's Jitsi Meet
more-information: https://forum.antennapod.org/t/monthly-community-call/1869
Expand Down
102 changes: 0 additions & 102 deletions events-with-RDATE.ics

This file was deleted.

6 changes: 6 additions & 0 deletions events.ics
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ EXDATE
{{- exception | date: "%Y%m%d" }}T{{ event.datetime-start | date: "%H%M00" }}{% unless event.timezone %}Z{% endunless %}
{%- unless forloop.last %},{% endunless %}
{%- endfor -%}
{%- endif %}{% if event.recurrence-additions %}
RDATE{%- if event.timezone -%};TZID={{ event.timezone }}{% endif %}:
{%- for extra-occurrence in event.recurrence-additions %}
{{- extra-occurrence | date: "%Y%m%dT%H%M00" }}{% unless event.timezone %}Z{% endunless %}
{%- unless forloop.last %},{% endunless %}
{%- endfor -%}
{%- endif %}
END:VEVENT
{%- endif %}
Expand Down