[Fixed]-How do you make Django-admin timezone aware?

3👍

Localized timezone support is available in the soon-to-be-released Django 1.4.

👤roam

7👍

Django 1.4 will introduce timezone support but the admin will still not be using it yet. There are still questions around which timezone implementation to “bless” (pytz), where to store the timezone per user (without built-in schema migration auth.User basically can’t get touched without forcing every Django user to sync their database), and there isn’t a UI for timezone selection yet.

So the parts are there but it’s still DIY at this stage, sorry.

See the thread I started on django-developers
http://groups.google.com/group/django-developers/browse_thread/thread/1386a2bf73babc6a

0👍

If you know what time zone you would like to use, there are techniques for causing data entry and display within the admin to use that time zone. See the blog post https://www.caktusgroup.com/blog/2014/01/09/managing-events-explicit-time-zones/

In my case, all the admin users are in the time zone of the server, so I was able to use this approach to get the admin to use that time zone. Note that this is done on a per-field basis, rather than globally, however, and I don’t know a way to get a date_hierarchy to use dates relative to this time zone.

👤AKelm

Leave a comment