react-bootstrap-datetimepicker icon indicating copy to clipboard operation
react-bootstrap-datetimepicker copied to clipboard

inputFormat to 24-hour leaves picker with AM/PM

Open brownieboy opened this issue 10 years ago • 1 comments

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.

brownieboy avatar Oct 08 '15 02:10 brownieboy

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.

bdart avatar Nov 15 '15 17:11 bdart