From 07d2463960edb2b0c4bbc75e96f22da19d02e6d9 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 9 Jan 2020 09:18:55 +0100 Subject: [PATCH] Correctly set timezone when cloning events --- src/pretix/control/forms/event.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pretix/control/forms/event.py b/src/pretix/control/forms/event.py index 7bb4ab35f..a1683d3ee 100644 --- a/src/pretix/control/forms/event.py +++ b/src/pretix/control/forms/event.py @@ -149,7 +149,8 @@ class EventWizardBasicsForm(I18nModelForm): self.user = kwargs.pop('user') kwargs.pop('session') super().__init__(*args, **kwargs) - self.initial['timezone'] = get_current_timezone_name() + if 'timezone' not in self.initial: + self.initial['timezone'] = get_current_timezone_name() self.fields['locale'].choices = [(a, b) for a, b in settings.LANGUAGES if a in self.locales] self.fields['location'].widget.attrs['rows'] = '3' self.fields['location'].widget.attrs['placeholder'] = _(