mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Update all dates to use utc, only in the template is it converted to british time.
This commit is contained in:
@@ -456,7 +456,7 @@ def api_user_changed_password(fake_uuid):
|
||||
'state': 'active',
|
||||
'failed_login_count': 5,
|
||||
'permissions': {},
|
||||
'password_changed_at': str(datetime.now() + timedelta(minutes=1))
|
||||
'password_changed_at': str(datetime.utcnow() + timedelta(minutes=1))
|
||||
}
|
||||
user = User(user_data)
|
||||
return user
|
||||
@@ -830,7 +830,7 @@ def sample_invite(mocker, service_one, status='pending'):
|
||||
email_address = 'invited_user@test.gov.uk'
|
||||
service_id = service_one['id']
|
||||
permissions = 'send_messages,manage_service,manage_api_keys'
|
||||
created_at = str(datetime.now())
|
||||
created_at = str(datetime.utcnow())
|
||||
return invite_json(id_, from_user, service_id, email_address, permissions, created_at, status)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user