remove datetime.utcnow()

This commit is contained in:
Kenneth Kehl
2024-05-23 13:59:51 -07:00
parent 752a13fbd2
commit 905df17f65
83 changed files with 591 additions and 570 deletions

View File

@@ -5,6 +5,7 @@ from flask import url_for
from app.dao.templates_dao import dao_update_template
from app.enums import TemplateProcessType
from app.utils import utc_now
from tests import create_admin_authorization_header
@@ -32,7 +33,7 @@ def test_template_history_version(notify_api, sample_user, sample_template):
datetime.strptime(
json_resp["data"]["created_at"], "%Y-%m-%d %H:%M:%S.%f"
).date()
== datetime.utcnow().date()
== utc_now().date()
)