USE_L10N, USE_I18N and DateTime Validation
|Reported by:||idle sign||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Since 1.2.4 and further till SVN the behaviour of DateTime widget seems to be weird.
As it stated in the documentation USE_L10N defaults to False and before 1.2.4 it worked as expected:
- put LANGUAGE_CODE = 'ru' and USE_I18N = True into settings;
- have contrib.admin in Russian with DateTime widgets using ISO format which differs from Russian native (2011-02-03 vs. 03.02.2011).
Now doing the same with 1.2.4+ I have DateTime widget showing 03.02.2011 so it doesn't validate on save.
The problem is resolved by setting USE_L10N = True, but that makes a little sense.
Change History (6)
comment:1 Changed 6 years ago by
|Patch needs improvement:||unset|
comment:3 Changed 6 years ago by
|Status:||closed → reopened|
comment:4 Changed 6 years ago by
|Component:||Internationalization → django.contrib.admin|
|Keywords:||blocker regression added|
|Triage Stage:||Unreviewed → Accepted|