Skip to content

Commit

Permalink
Merge pull request #500 from stacklok/date-fix
Browse files Browse the repository at this point in the history
Fix datetime deprecation
  • Loading branch information
lukehinds authored Jan 7, 2025
2 parents cc76070 + fe9d5d4 commit e0f694d
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 e0f694d

Please sign in to comment.