I presume that you mean date formatting in the templates:

http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date

you can use the strftime format bits iirc:

http://docs.python.org/library/datetime.html#strftime-and-strptime-behavior

you can set the default with a setting

http://docs.djangoproject.com/en/dev/ref/settings/#date-format

The language code shouldn't mess with the l10n date formatting that
I'm aware of, not sure. ... I think that UK locale is  ... hrm ..

you should be able to take care of your dates with the above info
though .. hrm ..

On Apr 24, 9:41 am, pjmorse <flashesofpa...@gmail.com> wrote:
> Is there any way to force a particular localization on date
> formatting?
>
> Our site (Django 1.0.2, Python 2.5) was set up with "UK" as the
> language code for the U.K. This apparently didn't cause any problems
> for years, but now that the person who made that decision is out of
> arm's reach, it's been discovered that dates in the UK localization
> are being displayed in... wait for it... Ukranian.
>
> Swapping the language code to "en" (which would be correct) breaks
> most of the rest of the site for reasons I don't fully understand yet.
>
> Is there any way to either override the localization on date
> formatting, or provide a parameter with the correct language code?
>
> Thanks,
>
> pjm
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

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

Reply via email to