Skip to content
Browse files

Fixed a typo in an example in the timezone docs.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent be1082b commit a9187e54472cd65dda0fac77cacd586c00fd7ea9 @aaugustin aaugustin committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/topics/i18n/timezones.txt
2 docs/topics/i18n/timezones.txt
@@ -199,7 +199,7 @@ Create a view that can set the current timezone::
def set_timezone(request):
if request.method == 'POST':
- request.session[session_key] = pytz.timezone(request.POST['timezone'])
+ request.session['django_timezone'] = pytz.timezone(request.POST['timezone'])
return redirect('/')
return render(request, 'template.html', {'timezones': pytz.common_timezones})

0 comments on commit a9187e5

Please sign in to comment.
Something went wrong with that request. Please try again.