Commit 66c28962 authored by Nicolas Fella's avatar Nicolas Fella

Fix time picker showing wrong hour

parent b73a0418
......@@ -48,7 +48,7 @@ public class TimePicker extends DialogFragment
public Dialog onCreateDialog(Bundle savedInstanceState) {
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(initialTime);
TimePickerDialog dialog = new TimePickerDialog(activity, this, cal.get(Calendar.HOUR), cal.get(Calendar.MINUTE), true);
TimePickerDialog dialog = new TimePickerDialog(activity, this, cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), true);
return dialog;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment