Filter events based on date does not work #300
-
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. I also 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". 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.
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I was able to make it work using |
Beta Was this translation helpful? Give feedback.
I was able to make it work using
startsAfter
andendsbefore
.While using graphql I noticed that the timezones were not being respected.