Monday, February 28, 2011

Wrong datetime format with datepicker in admin

Hello,

using django-1.2.4 i get the wrong date format when using the datepicker or
the today shortcut in the admin.

Instead of the format specified in my settings, it generates a local format -
"28.02.2011" instead of "2011-02-2011".

settings.py:
DATE_FORMAT = 'Y-m-d'
DATETIME_FORMAT = 'Y-m-d H:i:s'
YEAR_MONTH_FORMAT = 'Y-m'
MONTH_DAY_FORMAT = 'm-d'
TIME_FORMAT = 'H:i'
LANGUAGE_CODE = 'de-de'

USE_L10N defaults to False.

The today link in admin is:
javascript:DateTimeShortcuts.handleCalendarQuickLink(2, 0);

If i remember correctly the problem didn't exist in django-1.1 and arised
after the upgrade to django-1.2. Is there any other setting or configuration i
have missed?

Best Regards,
Dirk Eschler

--
Dirk Eschler <eschler@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment