Expected behavior
App should open 24h time picker.
Smartphone (please complete the following information):
Device: Nexus 4
OS: API 33
Browser chrome
Version of date picker "@capacitor-community/date-picker": "^4.0.0",
Additional context
When I opened Android Studio and find for TimePickerDialog and edit flag options.is24h for static true value. This feature worked, but I can't use that solution beacon I want to set conditional to is24H.
final TimePickerDialog timePicker = new TimePickerDialog(context, theme, (TimePickerDialog.OnTimeSetListener) (view, hourOfDay, minute) -> {
calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH), hourOfDay, minute);
callback.resolve(Parse.dateToString(calendar.getTime(), options.format));
}, calendar.get(Calendar.HOUR), calendar.get(Calendar.MINUTE), options.is24h);
Describe the bug At android platform, i set option is24h: true but always app shows 12h time picker.
To Reproduce Steps to reproduce the behavior:
Expected behavior App should open 24h time picker.
Smartphone (please complete the following information):
Additional context When I opened Android Studio and find for TimePickerDialog and edit flag options.is24h for static true value. This feature worked, but I can't use that solution beacon I want to set conditional to is24H. final TimePickerDialog timePicker = new TimePickerDialog(context, theme, (TimePickerDialog.OnTimeSetListener) (view, hourOfDay, minute) -> { calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH), hourOfDay, minute); callback.resolve(Parse.dateToString(calendar.getTime(), options.format)); }, calendar.get(Calendar.HOUR), calendar.get(Calendar.MINUTE), options.is24h);