@@ -0,0 +1,297 @@
+import pytz%0Afrom django.utils import timezone%0A%0A%0Aclass TimezoneMiddleware(object):%0A    def process_request(self, request):%0A        tzname = request.session.get(%22timezone%22, None)%0A        if tzname:%0A            timezone.activate(pytz.timezone(tzname))%0A        else:%0A            timezone.deactivate()%0A

Add timezone middleware helper.