diff --git a/tests/eligibility/factories.py b/tests/eligibility/factories.py index cf653a5c31..67bfd8a869 100644 --- a/tests/eligibility/factories.py +++ b/tests/eligibility/factories.py @@ -39,7 +39,7 @@ class Params: expired = factory.Trait( expires_at=factory.LazyFunction(lambda: timezone.localdate() - datetime.timedelta(days=1)), created_at=factory.LazyAttribute( - lambda obj: timezone.make_aware(faker.date_time(end_datetime=obj.expires_at)) + lambda obj: faker.date_time(tzinfo=timezone.get_current_timezone(), end_datetime=obj.expires_at) ), )