monim67 / django-flatpickr

Flatpicker based DatePickerInput, TimePickerInput and DateTimePickerInput with date-range-picker functionality for django >= 2.0
https://pypi.org/project/django-flatpickr/
MIT License
63 stars 11 forks source link

Allow 24h clock for defaultHour option #13

Closed rymdhund closed 1 year ago

rymdhund commented 1 year ago

Hey!

Flatpickr can handle 24 hour clocks so it would be great if we could allow this for the defaultHour config.

monim67 commented 1 year ago

Great catch, defaultHour is always set in 24hr format, shouldn't the range be 0 <= defaultHour <= 23?

rymdhund commented 1 year ago

You're right! I updated the pr :)