diff --git a/calsocial/forms.py b/calsocial/forms.py index b072689..843aeab 100644 --- a/calsocial/forms.py +++ b/calsocial/forms.py @@ -213,6 +213,13 @@ class EventForm(FlaskForm): description = StringField(_('Description'), widget=TextArea()) visibility = EnumField(EventVisibility, EVENT_VISIBILITY_TRANSLATIONS, label=_('Visibility')) + def __init__(self, *args, **kwargs): + from flask_security import current_user + + self.time_zone.kwargs['default'] = current_user.timezone + + FlaskForm.__init__(self, *args, **kwargs) + def populate_obj(self, obj): """Populate ``obj`` with event data """