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

🐛 Fix date range for statistics requests #478

Merged
merged 1 commit into from
Jan 27, 2025
Merged

🐛 Fix date range for statistics requests #478

merged 1 commit into from
Jan 27, 2025

Conversation

jheubuch
Copy link
Collaborator

The date range for statistics requests was not correctly handled, leading to inaccurate results. This commit fixes the issue by:

  • Changing the date range parameters in the StatisticsService to use ZonedDateTime instead of LocalDate.
  • Updating the StatisticsViewModel to correctly format the date range for the API request.
  • Updating the Statistics composable to use UTC for the date range picker.

fixes #266
fixes #268

The date range for statistics requests was not correctly handled, leading to inaccurate results. This commit fixes the issue by:

- Changing the date range parameters in the StatisticsService to use ZonedDateTime instead of LocalDate.
- Updating the StatisticsViewModel to correctly format the date range for the API request.
- Updating the Statistics composable to use UTC for the date range picker.
@jheubuch jheubuch enabled auto-merge (squash) January 27, 2025 13:46
@jheubuch jheubuch merged commit 5a25518 into dev Jan 27, 2025
1 check passed
@jheubuch jheubuch deleted the dev-jh/stats branch January 27, 2025 13:53
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.

Statistics: Datepicker extends time span without user input Statistics: Date selection is wrong
1 participant