"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
fix CI
yuhao87bdfe7697f0
diff --git a/.github/scripts/update_registry_dates.py b/.github/scripts/update_registry_dates.pyindex d20374547..af1bfcb32 100644--- a/.github/scripts/update_registry_dates.py+++ b/.github/scripts/update_registry_dates.py@@ -9,7 +9,7 @@ import shleximport subprocessimport urllib.parseimport urllib.request-from datetime import UTC, datetime+from datetime import datetime, timezonefrom email.utils import parsedate_to_datetimefrom pathlib import Path@@ -43,7 +43,7 @@ def _fetch_last_modified(url: str) -> str | None:last_modified = resp.headers.get("Last-Modified")if not last_modified:return None- return parsedate_to_datetime(last_modified).astimezone(UTC).strftime("%Y-%m-%d")+ return parsedate_to_datetime(last_modified).astimezone(timezone.utc).strftime("%Y-%m-%d")except Exception:return None@@ -81,7 +81,7 @@ def get_last_modified(target_path: Path) -> str | None:return Nonetry:- return datetime.fromtimestamp(timestamp, tz=UTC).strftime("%Y-%m-%d")+ return datetime.fromtimestamp(timestamp, tz=timezone.utc).strftime("%Y-%m-%d")except (OverflowError, OSError, ValueError):return None