Skip to content

Commit e82a25a

Browse files
committed
Fix for removed timezone.utc in Django
1 parent da3ce6a commit e82a25a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/reportmanager/management/commands/import_reports_from_bigquery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from django.core.management import BaseCommand
1111
from django.db.models import Q
1212
from django.db.utils import IntegrityError
13-
from django.utils import timezone
13+
from datetime import UTC
1414
from google.cloud import bigquery
1515
from google.oauth2 import service_account
1616

@@ -117,7 +117,7 @@ def handle(self, *args, **options):
117117
comments_translated=row.translated_text,
118118
comments_original_language=row.language_code,
119119
details=row.details,
120-
reported_at=row.reported_at.replace(tzinfo=timezone.utc),
120+
reported_at=row.reported_at.replace(tzinfo=UTC),
121121
url=urlsplit(row.url),
122122
os=row.os,
123123
uuid=row.uuid,

0 commit comments

Comments
 (0)