Skip to content

Commit

Permalink
Fix deprecation warning from datetime (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio authored Jan 20, 2025
1 parent 9ebad4d commit da9f52a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dask-gateway-server/dask_gateway_server/tls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone

from cryptography import x509
from cryptography.hazmat.backends import default_backend
Expand Down Expand Up @@ -40,7 +40,7 @@ def new_keypair(sni):
x509.DNSName("skein-internal"),
]
)
now = datetime.utcnow()
now = datetime.now(timezone.utc)
cert = (
x509.CertificateBuilder()
.subject_name(dask_internal)
Expand Down

0 comments on commit da9f52a

Please sign in to comment.