Permalink
Browse files

Merge "Store timezone as string. Fixes bug 1091021."

  • Loading branch information...
Jenkins authored and openstack-gerrit committed Dec 17, 2012
2 parents 4b0f66f + c5b6747 commit 648c8a582be274e400125b74b9572c2aebbab18a
Showing with 2 additions and 1 deletion.
  1. +2 −1 openstack_dashboard/dashboards/settings/user/forms.py
@@ -52,7 +52,8 @@ def handle(self, request, data):
response.set_cookie(settings.LANGUAGE_COOKIE_NAME, lang_code)
# Timezone
- request.session['django_timezone'] = pytz.timezone(data['timezone'])
+ request.session['django_timezone'] = pytz.timezone(
+ data['timezone']).zone
messages.success(request, translation.ugettext("Settings saved."))

0 comments on commit 648c8a5

Please sign in to comment.