Wednesday, October 10, 2012

Localisation and timezones

Hi all

If you enable USE_L10N=True, then datetime, date and time formats are
all taken from the definition for the current locale. However, none of
these formats seem to include the timezone of a non-naive datetime
field, which I can add by disabling USE_L10N and defining an
appropriate DATETIME_FORMAT.

Is there any way around this? I can have sane datetime formats, but
only if I disable all localisation?

Cheers

Tom

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate