Skip to content

Commit

Permalink
django.utils.timezone.utc was remove in Django 5.0 (#4231)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Feb 15, 2024
1 parent 45adecd commit a9adfff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/dashboard/test_review.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import timedelta
from datetime import timedelta, timezone as datetime_timezone

from django.urls import reverse
from django.utils import timezone
Expand Down Expand Up @@ -84,7 +84,7 @@ def n_days_ago(days):
ProductReviewSearchForm doesn't recognize the timezone notation.
"""
return timezone.make_naive(
now - timedelta(days=days), timezone=timezone.utc
now - timedelta(days=days), timezone=datetime_timezone.utc
)

now = timezone.now()
Expand Down

0 comments on commit a9adfff

Please sign in to comment.