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

Recurrent events not showed every time #164

Open
BoboTiG opened this issue Feb 4, 2025 · 0 comments
Open

Recurrent events not showed every time #164

BoboTiG opened this issue Feb 4, 2025 · 0 comments

Comments

@BoboTiG
Copy link
Member

BoboTiG commented Feb 4, 2025

I have a recurring event. And when I want to list events at a time inside the recurring event, then no event are shown. Given that the date is in-between the start, and end, of the recurring event, I thought it would be listed, correct?

Reproduction code:

from datetime import UTC, datetime, timedelta
from icalevents import icalevents


ics = b"""
BEGIN:VCALENDAR
VERSION:2.0

BEGIN:VEVENT
SUMMARY:Something recurrent (every 2 weeks, on Friday)
DTSTART:20250117T153000Z
DTEND:20250124T080000Z
RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=FR
END:VEVENT

END:VCALENDAR
"""

start = datetime(2025, 2, 4, tzinfo=UTC)  # From 01-31 to 02-07, it is inside the recurring event
end = start + timedelta(days=1)
events = icalevents.events(string_content=ics, start=start, end=end, tzinfo=UTC)
assert len(events) == 1
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

1 participant