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

Failing to validate DD/MM/YYYY format #82

Closed jacopsd closed 1 year ago

jacopsd commented 1 year ago

When using the format DateTimePickerInput(options={"format": "DD/MM/YYYY HH:mm"})

The submitted form fails to validate when a date is entered in this same format. It seems it expects MM/DD/YYY HH:mm?

monim67 commented 1 year ago

Duplicate #15

jacopsd commented 1 year ago

Thank you for the hint. Indeed, this solves the date format issue.

Now still the time shows UTC time instead of local time. How to solve this pls?

monim67 commented 1 year ago

Sorry for the late response, you need to set time zone in Django settings.