diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-03-11 17:44:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 17:44:01 +0100 |
commit | 835f007b675e06033daf55aa0b98b0cbb5ca675c (patch) | |
tree | 095820a5d4a9fdbbba34bdd07413baceda131fb8 /ui/statistics | |
parent | 95b97b6f49e96c659c2ef09a81c93b040a99f888 (diff) | |
download | AntennaPod-835f007b675e06033daf55aa0b98b0cbb5ca675c.zip |
Make statistics filter start at 00:00 (#6371)
Diffstat (limited to 'ui/statistics')
-rw-r--r-- | ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java index 8efdcf603..077883321 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java @@ -107,6 +107,10 @@ public class StatisticsFilterDialog { private Pair<String[], Long[]> makeMonthlyList(long oldestDate, boolean inclusive) { Calendar date = Calendar.getInstance(); date.setTimeInMillis(oldestDate); + date.set(Calendar.HOUR_OF_DAY, 0); + date.set(Calendar.MINUTE, 0); + date.set(Calendar.SECOND, 0); + date.set(Calendar.MILLISECOND, 0); date.set(Calendar.DAY_OF_MONTH, 1); ArrayList<String> names = new ArrayList<>(); ArrayList<Long> timestamps = new ArrayList<>(); |