saxix/django-adminactions — pull request #52 by joelryan2k (2014-06-20 11:54:45+00:00)
Title: Add timezone support to csv and xls export

It doesn't appear that the CSV and XLS exports handle datetime fields with timezones properly.

In my case, the database stores datetimes in UTC but the site runs in US/Eastern. This led to CSV exports having datetimes 4 hours off.

For the same datetime field, the XLS export had the message "can't subtract offset-naive and offset-aware datetimes" in the field.

This patch fixes datetime fields in both CSV and XLS by using pytz to convert to the TIME_ZONE specified in django.conf.settings.