From 750ee25a20691c72647e82bad0dccf6170046f7a Mon Sep 17 00:00:00 2001 From: Hossein Zaaferani Date: Sun, 4 Sep 2016 16:05:36 +0430 Subject: [PATCH] fix simple bug --- .../persianmaterialdatetimepicker/date/DatePickerDialog.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/src/main/java/ir/blue_saffron/persianmaterialdatetimepicker/date/DatePickerDialog.java b/library/src/main/java/ir/blue_saffron/persianmaterialdatetimepicker/date/DatePickerDialog.java index 3a64a68..6d826dd 100644 --- a/library/src/main/java/ir/blue_saffron/persianmaterialdatetimepicker/date/DatePickerDialog.java +++ b/library/src/main/java/ir/blue_saffron/persianmaterialdatetimepicker/date/DatePickerDialog.java @@ -117,6 +117,10 @@ public class DatePickerDialog extends DialogFragment implements public DatePickerDialog() { // Empty constructor required for dialog fragment. + mPersianCalendar.set(java.util.Calendar.HOUR_OF_DAY, 12); + mPersianCalendar.set(java.util.Calendar.MINUTE, 0); + mPersianCalendar.set(java.util.Calendar.SECOND, 0); + mPersianCalendar.set(java.util.Calendar.MILLISECOND, 0); } /**