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

[Health 10.0.0] getHealthDataFromTypes returns results in incorrect date range #932

Open
ciriousjoker opened this issue Mar 30, 2024 · 0 comments
Labels
bugfix a bug fix

Comments

@ciriousjoker
Copy link
Contributor

ciriousjoker commented Mar 30, 2024

Device / Emulator and OS

Please complete the following information for each phone and/or emulator you're experiencing this bug on:

  • Device: Pixel 7 Pro API 34 Emulator
  • OS: Android 14

NB: Bugs pertaining to old devices/OS versions will likely not be fixed.

Describe the bug

getHealthDataFromTypes returns results in incorrect date range.

To Reproduce

  1. Store some workouts in March 2024 and some more in December 2023.
  2. Run this code
await _health.getHealthDataFromTypes(
  DateTime(2023, 1, 1),
  DateTime(2024, 1, 1),
  [HealthDataType.WORKOUT],
)

Expected behavior

Should return only the results from december.

Actual behavior

Shows results from outside the specified date range.

Screenshots

CleanShot 2024-03-30 at 09 09 57@2x

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.1, on macOS 14.4.1 23E224 darwin-arm64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.87.2)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

Additional information

Add any other info about the problem here.

@ciriousjoker ciriousjoker added the bugfix a bug fix label Mar 30, 2024
@ciriousjoker ciriousjoker changed the title [Health 10.0.0] [Health 10.0.0] getHealthDataFromTypes returns results in incorrect date range Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix a bug fix
Projects
None yet
Development

No branches or pull requests

1 participant