Skip to content

Commit be28c2b

Browse files
committed
Fix a date arithmetic bug.
- Legacy-Id: 13484
1 parent 0fdaf2c commit be28c2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/meeting/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def clean(self):
8484
dates.sort()
8585
last_date = dates[0]
8686
for date in dates[1:]:
87-
if last_date.day + 1 != date.day:
87+
if date - last_date != datetime.timedelta(days=1):
8888
raise forms.ValidationError('For Multi-Day meetings, days must be consecutive')
8989
last_date = date
9090

0 commit comments

Comments
 (0)