Change email_access_validated_at formatting to be more in line with other dates on User model

This commit is contained in:
Pea Tyczynska
2020-02-04 16:57:22 +00:00
parent 7d460fe483
commit e413798b4d
3 changed files with 10 additions and 10 deletions

View File

@@ -680,5 +680,5 @@ def format_thousands(value):
def is_less_than_90_days_ago(date_from_db):
return (datetime.utcnow() - datetime.strptime(
date_from_db, '%a, %d %b %Y %X %Z'
date_from_db, "%Y-%m-%dT%H:%M:%S.%fZ"
)).days < 90