Skip to content

Commit 4033785

Browse files
committed
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
1 parent 9b672fc commit 4033785

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ietf/meeting/models.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,13 @@ def get_reopen_time(self):
150150
start_date = datetime.datetime(year=self.date.year, month=self.date.month, day=self.date.day)
151151
local_tz = pytz.timezone(self.time_zone)
152152
local_date = local_tz.localize(start_date)
153-
reopen_time = local_date + self.idsubmit_cutoff_time_utc
153+
cutoff = self.get_00_cutoff()
154+
if cutoff.date() == start_date:
155+
# no cutoff, so no local-time re-open
156+
reopen_time = cutoff
157+
else:
158+
# reopen time is in local timezone. May need policy change?? XXX
159+
reopen_time = local_date + self.idsubmit_cutoff_time_utc
154160
return reopen_time
155161

156162
@classmethod

0 commit comments

Comments
 (0)