matinzd/react-native-health-connect

RangeError: Date value out of bounds in method readRecords with types Hydration, Nutrition, TotalCaloriesBurned

Closed this issue · 0 comments

Describe the bug
RangeError: Date value out of bounds in method readRecords with types Hydration, Nutrition, TotalCaloriesBurned if records exists

To Reproduce
Steps to reproduce the behavior:

  1. Create new record in Google Health Connect
    insertRecords([ { recordType: 'Hydration', volume: { value: 400, unit: 'milliliters' }, startTime: '2024-09-05T12:07:20.520Z', endTime: '2024-09-05T12:17:20.520Z', }, ])
  2. Read created record from Google Health Connect
    readRecords('Hydration', { timeRangeFilter: { operator: 'after', startTime: '2024-09-05T12:07:20.520Z', }, })

Environment:

  • Health Connect Version: 3.1.0
  • React Native Version: 0.75.2
  • New architecture enabled: No
  • Using Expo: No
  • Android API Level: API 34 (Android 14)