monim67 / django-bootstrap-datepicker-plus

Bootstrap3/Bootstrap4/Bootstrap5 DatePickerInput, TimePickerInput, DateTimePickerInput, MonthPickerInput, YearPickerInput with date-range-picker functionality for django >= 2.0
https://pypi.python.org/pypi/django-bootstrap-datepicker-plus
MIT License
223 stars 61 forks source link

Formats "L" (Moment) and "%x" (python datetime) #73

Closed ouhena closed 1 year ago

ouhena commented 2 years ago

Maybe the map ("L", r"%x") could be added to format_map in the BasePickerInput class. It seems to be ok for 'en' and 'fr' locales, but I can't test for other locales.

Setup Information (please complete the following information):

monim67 commented 1 year ago

From 5.0.0 python formats are no longer supported, only moment formats are accepted for simplicity. Hence format mapping is no longer required.