Skip to content

Commit

Permalink
Replace datetime.now() with timezone aware timezone.now()
Browse files Browse the repository at this point in the history
  • Loading branch information
juuso-j committed Mar 27, 2024
1 parent 31c4e8f commit 4dd9fb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions exceptional_situations/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from datetime import datetime, timedelta
from datetime import timedelta

import pytest
from django.contrib.gis.geos import GEOSGeometry
from django.utils import timezone
from rest_framework.test import APIClient

from exceptional_situations.models import (
Expand All @@ -11,7 +12,7 @@
SituationType,
)

NOW = datetime.now()
NOW = timezone.now()


@pytest.fixture
Expand Down

0 comments on commit 4dd9fb8

Please sign in to comment.