Skip to content

Commit

Permalink
Pull the user timezone from the session.
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed May 31, 2008
1 parent 2bc515d commit e8e6d32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion logger/context_processors.py
@@ -1,3 +1,6 @@

from django.conf import settings

def logger(request):
return {"user_timezone": "US/Mountain"}
user_timezone = request.session.get("user_timezone", settings.TIME_ZONE)
return {"user_timezone": user_timezone}

0 comments on commit e8e6d32

Please sign in to comment.