Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#28522 closed Bug (needsinfo)

Django seems to ignore global DATE_INPUT_FORMATS and TIME_INPUT_FORMATS when set in settings

Reported by: Dan Swain Owned by: nobody
Component: Uncategorized Version: 1.11
Severity: Normal Keywords: settings DATE_INPUT_FORMATS TIME_INPUT_FORMATS forms validation
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Django seems to be completely ignoring the global settings variables DATE_INPUT_FORMATS and TIME_INPUT_FORMATS. I have a question posted here that explains the problem.
https://stackoverflow.com/questions/45827973/cannot-successfully-parse-django-datefield-in-form

Dan Swain

Change History (2)

comment:1 by Tim Graham, 7 years ago

Can you please provide a test for Django's test suite (or at least some minimal code) that demonstrates the issue? Linking to another website to explain the issue isn't ideal because if that disappears then we have no explanation of the issue. Thanks.

p.s. Before creating a ticket, you might try our support channels to confirm there's a bug and not a usage mistake.

comment:2 by Tim Graham, 7 years ago

Resolution: needsinfo
Status: newclosed

Reading #13339 might help understand the issue. I don't have much experience with localizations in forms myself. Please reopen the ticket if you can provide some code to reproduces a problem that contradicts the documentation.

Last edited 7 years ago by Tim Graham (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top