We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently the due data for profile surveys is listed as a day, but the due date is a datetime that ends before midnight on the due date.
The text was updated successfully, but these errors were encountered:
Here is what is currently in the model:
` def due_date(self): first_survey_due_date = datetime.date(2016, 7, 29) if datetime.date.today() < datetime.date(2016, 6, 30): return first_survey_due_date return (self.created_at + datetime.timedelta(30)).date()
def overdue(self): tomorrow = (timezone.now() + datetime.timedelta(days=1)).date() return self.due_date() < tomorrow
`
So, I think we just need to change the tomorrow variable to equal 11:59pm the next day. Does that sound right?
tomorrow
Sorry, something went wrong.
[refs codefordurham#384] Cleaner way to fix this issue
3eb928b
Fixes #443, #384. Timezone aware due date fixes
af0e8e9
Merge pull request #447 from codefordurham/443-due-date-broken
9440c80
npage915
No branches or pull requests
Currently the due data for profile surveys is listed as a day, but the due date is a datetime that ends before midnight on the due date.
The text was updated successfully, but these errors were encountered: