Skip to content

Commit e0f694d

Browse files
authored
Merge pull request #500 from stacklok/date-fix
Fix datetime deprecation
2 parents cc76070 + fe9d5d4 commit e0f694d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)