builttoroam / device_calendar

A cross platform plugin for modifying calendars on the user's device
https://pub.dev/packages/device_calendar
BSD 3-Clause "New" or "Revised" License
259 stars 258 forks source link

All day events are incorrectly retreived on Android next day #535

Open hamishjohnson opened 3 months ago

hamishjohnson commented 3 months ago

Describe the bug On Android, when requesting all day events, they are retreived incorrectly when querying the next day.

To Reproduce

  1. Create all day event on Android for today (e.g. 3 April 2024)
  2. Request all events between the next day (e.g. 4 April 2024 T 00:00 to 5 April 2024 T 00:00)

Expected behavior The event on 3 April should not be returned

Screenshots Optional, add screenshots if it helps explain your problem.

Device(s) tested This can be very important as not all device vendors do calendar in the same way.

Flutter doctor [✓] Flutter (Channel stable, 3.16.5, on macOS 14.2.1 23C71 darwin-arm64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.1) [✓] VS Code (version 1.87.2) [✓] Connected device (5 available) ! Error: Browsing on the local area network for Development iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) ! Error: Browsing on the local area network for Apple Watch. Ensure the device is unlocked and discoverable via Bluetooth. (code -27) [✓] Network resources

• No issues found!