#2203: TIME_FORMAT, DATE_FORMAT and DATETIME_FORMAT are ignored
-------------------------------------------+--------------------------------
Reporter: [email protected] | Owner: garcia_marc
Status: new | Milestone:
Component: Internationalization | Version: SVN
Resolution: | Keywords: i18n-fixed
Stage: Fixed on a branch | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by ctao):
If change the following code
{{{
if date_format == 'DATE_FORMAT':
date_format = settings.DATE_FORMAT
if datetime_format == 'DATETIME_FORMAT':
datetime_format = settings.DATETIME_FORMAT
if time_format == 'TIME_FORMAT':
time_format = settings.TIME_FORMAT
}}}
into
{{{
if settings.DATE_FORMAT:
date_format = settings.DATE_FORMAT
if settings.DATETIME_FORMAT:
datetime_format = settings.DATETIME_FORMAT
if settings.TIME_FORMAT:
time_format = settings.TIME_FORMAT
}}}
then it will use the format from setting.
--
Ticket URL: <http://code.djangoproject.com/ticket/2203#comment:24>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.