I am creating Django Form and want to use TimeField with 24-hour format.
However when I try using Django widget, I get the 12-hour format. This is my code.
start_time = forms.TimeField(
label="Start Time",
widget=forms.TextInput(
attrs={'type': 'time'}
)
)
How to change it to 24-hour format?