studioespresso / craft-date-range

Date range field for Craft CMS
MIT License
12 stars 5 forks source link

Graphql isOngoing, isPast and isFuture Time aware fix #29

Open davola opened 2 years ago

davola commented 2 years ago

There is a problem when trying to filter an entry using the isOngoing, isPast and isFuture filters on an graphql query. It happens that this filters only check for the date of the entry, not having into account the actual time (hs/min/secs).

This fix will allow to perform a time aware query (including the time, not just the date) so we can pick the entries more accurately.

I have tested to be working on my branch,

Feedback is welcome. (if you can merge this quick it will be appreciated!)

Thanks!