mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
remove datetime.utcnow()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user