From 4033785d40ba6e842af5daedbe9a5c937cb839d0 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 17 Jun 2020 18:04:03 +0000 Subject: [PATCH] With the draft submission cutoff date before a meeting set to the meeting start date (with the intention to have no blackout), the fact that submission re-open time is midnight _local_ time led to a blackout period of a few hours after midnight UTC for meeting timezones with midnight later than UTC. Changed this to give no blackout time when cutoff-date == meeting.date - Legacy-Id: 18014 --- ietf/meeting/models.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ietf/meeting/models.py b/ietf/meeting/models.py index 69c50f6a9..c045bf759 100644 --- a/ietf/meeting/models.py +++ b/ietf/meeting/models.py @@ -150,7 +150,13 @@ class Meeting(models.Model): start_date = datetime.datetime(year=self.date.year, month=self.date.month, day=self.date.day) local_tz = pytz.timezone(self.time_zone) local_date = local_tz.localize(start_date) - reopen_time = local_date + self.idsubmit_cutoff_time_utc + cutoff = self.get_00_cutoff() + if cutoff.date() == start_date: + # no cutoff, so no local-time re-open + reopen_time = cutoff + else: + # reopen time is in local timezone. May need policy change?? XXX + reopen_time = local_date + self.idsubmit_cutoff_time_utc return reopen_time @classmethod