Get events between specific date range in module controller #285
Unanswered
MatthiasBrodelet
asked this question in
Questions & Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am building a module that shows the available days in the next month based on the events in the Calendar Plugin.
How can I extend this to only return start dates between a specific date range? It seems that $criteria->startDate, $criteria->start and $criteria-> dateRangeStart all don't exist.
I can of course filter them afterwards but that won't be very performant.
Edit: I just tried to to it with the GraphQL API.
This returns me 0 events without issues while it should return 14 events.
This returns 17 events of which 14 have a startDate formatted as follows: 2024-05-08T14:00:00+00:00".
Of course the hour will be different per event.
At first I thought that there was an issue with the timezone but even when I query for 2024-05-07" or 2024-05-09" it just returns 0 events.
Beta Was this translation helpful? Give feedback.
All reactions