Replace naive datetimes with aware ones

This commit is contained in:
Joel Bradshaw
2020-11-27 16:24:53 -08:00
parent 1df5b2d481
commit d8b2afff3d
8 changed files with 22 additions and 19 deletions

View File

@ -54,7 +54,7 @@ class SiteInvite(models.Model):
def get_passowrd_reset_expiry():
''' give people a limited time to use the link '''
now = datetime.datetime.now()
now = timezone.now()
return now + datetime.timedelta(days=1)