> Back then there were various issues with localisation when **not** using type=text.

As https://code.djangoproject.com/ticket/16630#comment:11 states: the inputs only accept a special format. To make it work I had to explicitly set the format: `DateInput(format='%Y-%m-%d', attrs={'type': 'date'}`.

Another thing to be aware of: The native date picker UI uses the system/browser locale, not the one that is used on the page. (See also https://bugs.chromium.org/p/chromium/issues/detail?id=263320)

Hope that helps

tobias

--
You received this message because you are subscribed to the Google Groups "Django 
developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/d3b1ee19-0671-4826-a3ec-ba27e166791d%40posteo.de.

Reply via email to