Skip to content

Commit

Permalink
Merge pull request #110 from plone/109.bugfix
Browse files Browse the repository at this point in the history
Added a timezone setter
  • Loading branch information
jensens authored Aug 25, 2022
2 parents 575fe2b + 0832753 commit a1de9d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/109.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure that, when no timezone is selected, the value of the stored timezone is an empty string
10 changes: 10 additions & 0 deletions plone/app/users/browser/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a1de9d7

Please sign in to comment.