#33165: DateInput default date is not shown when localization is on -----------------------------------------+------------------------ Reporter: m-zat | Owner: nobody Type: Uncategorized | Status: new Component: Forms | Version: 3.2 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -----------------------------------------+------------------------ Step to reproduce:
- Create a Model with a date field - Create a ModelForm based on said model with a widget entry to make the date a DateInput (otherwise it is shown as text field) - With localization turned on set LANGUAGE='it-ch' - Open a webpage showing the form with {{ form }} in the template With 'it-ch' the default value is not shown because the value passed to the field is not understood by the browser (in this case '%d/%m/%Y'), while it is shown when using 'en-us' (in this case '%Y-%m-%d is passed) Expected behavior: The default date is shown independently of the locale selected server side -- Ticket URL: <https://code.djangoproject.com/ticket/33165> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/048.2dd9bc49602a52f6264c36b0914f1f44%40djangoproject.com.