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

@@ -61,7 +61,7 @@ from app.models import (
TemplateHistory,
User,
)
from app.utils import get_midnight_in_utc
from app.utils import get_midnight_in_utc, utc_now
from notifications_utils.recipients import RecipientCSV
from notifications_utils.template import SMSMessageTemplate
from tests.app.db import (
@@ -327,7 +327,7 @@ def update_jobs_archived_flag(start_date, end_date):
total_updated = 0
while process_date < end_date:
start_time = datetime.utcnow()
start_time = utc_now()
sql = """update
jobs set archived = true
where