#15218: USE_L10N, USE_I18N and DateTime Validation ------------------------------------------------+--------------------------- Reporter: idle | Owner: nobody Status: closed | Milestone: 1.3 Component: Internationalization | Version: 1.3-beta Resolution: worksforme | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | ------------------------------------------------+--------------------------- Changes (by russellm):
* status: new => closed * resolution: => worksforme Comment: Either I'm not understanding this report, or you are misunderstanding what is going on. USE_I18N only affects translations - i.e., does the admin show "Добавить object" or "Add new object" USE_L10N affects the formatting of data -- do you use commas or periods to separate decimals, date/time formats etc. If you have USE_L10N=False, date/times will always be presented in ISO format (i.e., 2011-02-03 16:17:23). I've tested with 1.2.3, 1.2.X and trunk, and this displays and validates as expected. If you have USE_L10N=True, date/times will be displayed in locale-specific format. For the "ru" locale, this means 03.02.2011. Again, I've tested this with 1.2.3, 1.2.X and trunk, and dates display and validate as expected. If you don't have USE_L10N defined at all, it defaults to False, which means you don't get localizations. I can't see anything "weird" the behavior I'm seeing. If I've misunderstood this report, please reopen with describing what you are seeing, what you would expect to see, and why. -- Ticket URL: <http://code.djangoproject.com/ticket/15218#comment:2> Django <http://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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.