diff --git a/test/io/test_io.py b/test/io/test_io.py index 75c2ad8617..e61e074cbc 100644 --- a/test/io/test_io.py +++ b/test/io/test_io.py @@ -216,7 +216,7 @@ def test_iat_claim(defaultenv): env = {**defaultenv, "PGRST_JWT_SECRET": SECRET} - claim = {"role": "postgrest_test_author", "iat": datetime.utcnow()} + claim = {"role": "postgrest_test_author", "iat": datetime.now(timezone.utc)} headers = jwtauthheader(claim, SECRET) with run(env=env) as postgrest: