react-bootstrap-datetimepicker
react-bootstrap-datetimepicker copied to clipboard
inputFormat to 24-hour leaves picker with AM/PM
I'm setting the inputFormat to 24-hour, as below:
<DateTimeField
label="test"
inputFormat="DD/MM/YYYY HHmm" />
This works fine for the value that's displayed in the field, but the time picker dialog still only lets you select from 12 hours with AM/PM symbols.
This makes no sense. The inputFormat parameter needs to change the picker to 24-hours too. Or there needs to be another parameter to set that.
I am facing the same problem. Did you found any solution for this?
In the origin it was handled like this e.g.:
$('#datetimepicker2').datetimepicker({
locale: 'ru'
});
Setting the locale would solve it.