mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 17:45:41 -04:00
remove pytz remnants
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from zoneinfo import ZoneInfo
|
||||
|
||||
import dateutil
|
||||
import pytz
|
||||
from flask import Blueprint, current_app, jsonify, request
|
||||
|
||||
from app.aws.s3 import (
|
||||
@@ -225,7 +226,7 @@ def get_scheduled_job_stats(service_id):
|
||||
jsonify(
|
||||
count=count,
|
||||
soonest_scheduled_for=(
|
||||
soonest_scheduled_for.replace(tzinfo=pytz.UTC).isoformat()
|
||||
soonest_scheduled_for.replace(tzinfo=ZoneInfo.UTC).isoformat()
|
||||
if soonest_scheduled_for
|
||||
else None
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user