From bf9de0646a9499098091c04f9c68b8bd7aa21784 Mon Sep 17 00:00:00 2001 From: knrdl <35548889+knrdl@users.noreply.github.com> Date: Sat, 20 Jul 2024 17:00:58 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20CryptographyDeprecationWarning:=20P?= =?UTF-8?q?roperties=20that=20return=20a=20na=C3=AFve=20datetime=20object?= =?UTF-8?q?=20have=20been=20deprecated.=20Please=20switch=20to=20not=5Fval?= =?UTF-8?q?id=5Fafter=5Futc.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/acme/order/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/acme/order/router.py b/app/acme/order/router.py index 202f5b9..67bc4d9 100644 --- a/app/acme/order/router.py +++ b/app/acme/order/router.py @@ -169,7 +169,7 @@ async def finalize_order(order_id: str, data: Annotated[RequestData[FinalizeOrde not_valid_before, not_valid_after = await sql.record(""" insert into certificates (serial_number, csr_pem, chain_pem, order_id, not_valid_before, not_valid_after) values ($1, $2, $3, $4, $5, $6) returning not_valid_before, not_valid_after - """, cert_sn, csr_pem, signed_cert.cert_chain_pem, order_id, signed_cert.cert.not_valid_before, signed_cert.cert.not_valid_after) + """, cert_sn, csr_pem, signed_cert.cert_chain_pem, order_id, signed_cert.cert.not_valid_before_utc, signed_cert.cert.not_valid_after_utc) order_status = await sql.value(""" update orders set status='valid' where id = $1 and status='processing' returning status """, order_id)