Skip to content
Browse files

Cookie name type

In cookie is named TIMEZONE and here we look for TIME_ZONE
  • Loading branch information...
1 parent fbfcc5d commit c273069822a270c9401d86d1901e625a026fc471 @swiftslipper swiftslipper committed with Dec 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_tz/
2 django_tz/
@@ -16,7 +16,7 @@ def get_tz_from_request(request):
if tz and isinstance(tz, datetime.tzinfo):
return tz
- cookie_name = getattr(settings, 'TIMEZONE_COOKIE_NAME', 'TIME_ZONE')
+ cookie_name = getattr(settings, 'TIMEZONE_COOKIE_NAME', 'TIMEZONE')
form = TimeZoneForm({'timezone': request.COOKIES.get(cookie_name, None)})
if form.is_valid():
return form.cleaned_data['timezone']

0 comments on commit c273069

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