diff options
-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 |