Skip to content

Commit

Permalink
FIXUP: Fix timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Jul 16, 2024
1 parent 7728dff commit b1eaeab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ynr/apps/people/tests/test_person_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from candidates.tests.helpers import TmpMediaRootMixin
from candidates.tests.uk_examples import UK2015ExamplesMixin
from django.contrib.auth import get_user_model
from django.utils import timezone
from django_webtest import WebTest
from moderation_queue.models import QueuedImage
from moderation_queue.tests.paths import EXAMPLE_IMAGE_FILENAME
Expand Down Expand Up @@ -76,7 +77,7 @@ def test_person_image_modified_timestamp(self):
"user_notes": "A photo of Tessa Jowell",
},
)
modified = pi.modified
modified = timezone.localtime(pi.modified)
response = self.app.get(f"/person/{person.id}", user=self.user)
self.assertIn(
f"This photo was uploaded on {modified.strftime('%-d %B %Y %H:%M')}.",
Expand Down

0 comments on commit b1eaeab

Please sign in to comment.