Skip to content

Commit

Permalink
Fix datetime deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehinds committed Jan 7, 2025
1 parent 4d8dd3c commit fe9d5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegate/ca/codegate_ca.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _load_existing_certificates(self) -> None:
self._cert_cache[common_name] = CachedCertificate(
cert_path=cert_path,
key_path=key_path,
creation_time=datetime.now(datetime.UTC),
creation_time=datetime.now(timezone.utc),
)
else:
logger.debug(f"Skipping expired certificate for {common_name}")
Expand Down

0 comments on commit fe9d5d4

Please sign in to comment.