Traewelldroid / traewelldroid

Android app for @Traewelling public transport check-in service
https://traewelldroid.de
GNU Affero General Public License v3.0
67 stars 8 forks source link

Statistics: Date selection is wrong #266

Open flecken66 opened 9 months ago

flecken66 commented 9 months ago

Describe the bug The date selection on the statistics page uses an incorrect interval. An open interval is used, but a closed interval should be used. (https://en.m.wikipedia.org/wiki/Interval_(mathematics)#Definitions)

That means when I select a timeperiod I only get the statistics between the start and end date but not from the start and end date. This is not very intuitive and creates the edge case when start and end date are identical you never get any stats.

Screenshots

19.09. - 21.09 (today) - no statistics

19.09. - 22.09 (tomorrow) - Statistics are available

Daily overview from 21.09 (today) with 5 check-ins

Smartphone:  - Device: Pixel 7  - OS: Android 13  - Version: v2.1.4-play (126)