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

Change android calendar query to catch events that intersect date ran… #333

Merged
merged 1 commit into from Dec 28, 2020

Conversation

jenniferburch
Copy link
Contributor

There's a difference between how iOS and Android fetchEvents. Given start and end dates, iOS will gets the intersection of events for those dates whereas Android is getting a subset.

For example:
Start and end dates are 2020-11-25T08:00:00.000Z and 2020-11-25T09:00:00.000Z
The event we are expecting goes from 2020-11-25T08:30:00.000Z and 2020-11-25T09:30:00.000Z

The iOS version will return this event but the Android version won't.

So change the date filter to look for events that start before our end date and end after our start date

@MoOx
Copy link
Collaborator

MoOx commented Nov 30, 2020

Seems to be promising!
I will have a look to iOS code & will ship this as a fix if that's similar indeed!

@wmcmahan
Copy link
Owner

Great catch! I'm surprised this has not been more of an issue. 👍

@wmcmahan wmcmahan merged commit 86a9a28 into wmcmahan:master Dec 28, 2020
@MoOx
Copy link
Collaborator

MoOx commented Jan 8, 2021

Available in 2.2.0, thanks again!

@jenniferburch
Copy link
Contributor Author

Awesome! thanks for the heads up on release

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

Successfully merging this pull request may close these issues.

None yet

3 participants