Commit 49525522 authored by Dimitri Podborski's avatar Dimitri Podborski
Browse files

Systems deadline is the end of Monday (CEST)

parent ea5ec42a
......@@ -103,7 +103,7 @@ def is_document_late(meeting_start, v1_upload_timestamp):
meeting_start and v1_upload_timestamp shall be datetime objects
'''
meeting_start = meeting_start.replace(hour=0, minute=0, second=0) # paranoia
deadline = meeting_start - timedelta(days=7) # End of Sunday
deadline = meeting_start - timedelta(days=6) # End of Monday
diff = deadline - v1_upload_timestamp
if diff.total_seconds() <= 0:
return True
......@@ -113,7 +113,7 @@ def try_parsing_date(text):
'''
Try parsing the timestamp, if not possible return None
'''
for fmt in ('%Y-%m-%d %H:%M:%S', 'Y-%m-%d'):
for fmt in ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d'):
try:
return datetime.strptime(text.strip(), fmt)
except ValueError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment