Skip to content

Commit fe9d5d4

Browse files
committed
Fix datetime deprecation
1 parent 4d8dd3c commit fe9d5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/codegate/ca/codegate_ca.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _load_existing_certificates(self) -> None:
173173
self._cert_cache[common_name] = CachedCertificate(
174174
cert_path=cert_path,
175175
key_path=key_path,
176-
creation_time=datetime.now(datetime.UTC),
176+
creation_time=datetime.now(timezone.utc),
177177
)
178178
else:
179179
logger.debug(f"Skipping expired certificate for {common_name}")

0 commit comments

Comments
 (0)