From ff9ecd0f74ff631a4a8ba418ff2a99f5ba66e223 Mon Sep 17 00:00:00 2001 From: Hariharan Date: Thu, 25 Feb 2021 23:52:23 +0530 Subject: [PATCH] fix#1216:Warning fixed in min date picker --- .../mifospay/standinginstruction/ui/SIDetailsActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/standinginstruction/ui/SIDetailsActivity.kt b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/standinginstruction/ui/SIDetailsActivity.kt index 8cb364485..53fec6467 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/standinginstruction/ui/SIDetailsActivity.kt +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/standinginstruction/ui/SIDetailsActivity.kt @@ -75,7 +75,7 @@ class SIDetailsActivity : BaseActivity(), StandingInstructionContract.SIDetailsV DatePickerDialog.OnDateSetListener { view, year, monthOfYear, dayOfMonth -> tv_valid_till.text = "$dayOfMonth-${(monthOfYear + 1)}-$year" }, year, month, day) - picker.datePicker.minDate = SimpleDateFormat("dd-MM-yyyy").parse(tv_valid_from.text.toString()).time + picker.datePicker.minDate = SimpleDateFormat("dd-MM-yyyy",Locale.getDefault()).parse(tv_valid_from.text.toString()).time picker.show() }