Skip to content

Commit

Permalink
Fix: replace deprecated utcfromtimestamp() with fromtimestamp()
Browse files Browse the repository at this point in the history
  • Loading branch information
grydz committed Dec 27, 2024
1 parent c2cea04 commit dc095da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cenclave_lib_sgx/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import sys
import sysconfig
import uuid
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone
from enum import Enum
from pathlib import Path
from typing import cast
Expand Down Expand Up @@ -173,7 +173,7 @@ def run() -> None:
else:
# The conf server and the app server will use the same self-signed cert
ssl_app_mode = SslAppMode.RATLS_CERTIFICATE
expiration_date = datetime.utcfromtimestamp(args.ratls)
expiration_date = datetime.fromtimestamp(args.ratls, tz=timezone.utc)

logging.info("Generating self-signed certificate...")

Expand Down

0 comments on commit dc095da

Please sign in to comment.