I have datetime information stored in the database as UTC. I’m displaying this info using Django admin.
Is there a way to display datetime information to the end-user’s current timezone in Django admin?
Usually I think the logic for this would be in the template/view layer, however, Django-admin hides this all away from you and it seems like I would have to override many of the hidden files (which I don’t want to do).
One idea is to subclass DateTimeField in the models and make it so that it converts it to local timezone whenever you grab it from the database, though I’m not sure if this will work.
Anyone have any suggestions? Thanks.
Localized timezone support is available in the soon-to-be-released Django 1.4.