Skip to content

[Bug]: Incorrect step count imported from Health Connect #2147

Description

@Bl4nk24

Are you willing to submit a PR?

No, but I can help test

What happened?

Steps imported from Health Connect are displayed incorrectly in SparkyFitness.

The number of steps shown in SparkyFitness is significantly lower than the number currently recorded in Health Connect.

For example, when Health Connect shows 10,000 steps at 12:00, SparkyFitness only shows approximately 5,000 steps.

It seems that this may be related to how SparkyFitness handles the time range of Health Connect step records.

Steps to reproduce

  1. Enable Health Connect integration in SparkyFitness.
  2. Walk enough steps so that Health Connect contains step data for the current day.
  3. Check the current step count in Health Connect.
  4. Sync or refresh the data in SparkyFitness.
  5. Compare the step count shown in SparkyFitness with Health Connect.

Example:

  • Health Connect at 12:00: 10,000 steps
  • SparkyFitness at 12:00: ~5,000 steps

Expected behavior

SparkyFitness should display the same number of steps that Health Connect has recorded up to the current time.

Example:

  • Health Connect at 12:00: 10,000 steps
  • SparkyFitness at 12:00: 10,000 steps

How are you running SparkyFitness?

Docker Compose

SparkyFitness version

1.6.2

Which area is affected?

Integrations (Garmin, Fitbit, etc.)

Docker Compose & Environment Configuration

Runtime Logs (Server, Web, or Mobile)

Screenshots or Screen Recordings

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions