diff --git a/news/109.bugfix b/news/109.bugfix new file mode 100644 index 00000000..a7f6796f --- /dev/null +++ b/news/109.bugfix @@ -0,0 +1 @@ +Ensure that, when no timezone is selected, the value of the stored timezone is an empty string diff --git a/plone/app/users/browser/account.py b/plone/app/users/browser/account.py index f89bac92..f13c085c 100644 --- a/plone/app/users/browser/account.py +++ b/plone/app/users/browser/account.py @@ -138,6 +138,16 @@ def wysiwyg_editor(self, value): value = '' return self._setProperty('wysiwyg_editor', value) + @property + def timezone(self): + return self._getProperty('timezone') + + @timezone.setter + def timezone(self, value): + if value is None: + value = '' + return self._setProperty('timezone', value) + @implementer(IAccountPanelForm) class AccountPanelForm(AutoExtensibleForm, form.Form):