diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-04-18 18:04:03 -0500 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-04-18 18:04:03 -0500 |
commit | 6e897aadc36dc97b5c3880709abd3130d22f41f3 (patch) | |
tree | 3fbcf182e450d01c81cd611ff185d342fe8463ad /androidApp | |
parent | bb1367934355433ecaf60da8a42a1e6124f6af46 (diff) | |
parent | ed7d22c35d6ddea39284a31e751a2cc9f86332f3 (diff) | |
download | etbsa-trackermap-mobile-6e897aadc36dc97b5c3880709abd3130d22f41f3.tar.gz etbsa-trackermap-mobile-6e897aadc36dc97b5c3880709abd3130d22f41f3.tar.bz2 etbsa-trackermap-mobile-6e897aadc36dc97b5c3880709abd3130d22f41f3.zip |
Merge branch 'main' of https://git.sr.ht/~avalos/trackermap-mobile
Diffstat (limited to 'androidApp')
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/reports/UnitReportsFragment.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/reports/UnitReportsFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/reports/UnitReportsFragment.kt index 60222ff..6cc36bd 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/reports/UnitReportsFragment.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/reports/UnitReportsFragment.kt @@ -258,7 +258,7 @@ class UnitReportsFragment : Fragment() { val (from, to) = period.getObjectDates() fromDatePicker = DatePickerDialog(requireContext(), { p0, p1, p2, p3 -> - fromPickedDatetime = LocalDateTime(p1, p2, p3, from.hour, from.minute) + fromPickedDatetime = LocalDateTime(p1, p2 + 1, p3, from.hour, from.minute) fromTimePicker.show() }, from.year, from.monthNumber, from.dayOfMonth) fromDatePicker.datePicker.maxDate = Calendar.getInstance().timeInMillis @@ -276,7 +276,7 @@ class UnitReportsFragment : Fragment() { }, from.hour, from.minute, false) toDatePicker = DatePickerDialog(requireContext(), { p0, p1, p2, p3 -> - toPickedDatetime = LocalDateTime(p1, p2, p3, from.hour, from.minute) + toPickedDatetime = LocalDateTime(p1, p2 + 1, p3, from.hour, from.minute) toTimePicker.show() }, to.year, to.monthNumber, to.dayOfMonth) toDatePicker.datePicker.maxDate = Calendar.getInstance().timeInMillis |