fix: compare timezones correctly in download script

This commit is contained in:
Ashwin Bharambe 2025-03-21 11:46:57 -07:00
parent f76550ce4e
commit cb7b9dda6c

View file

@ -404,7 +404,7 @@ def _download_from_manifest(manifest_file: str, max_concurrent_downloads: int):
d = json.load(f)
manifest = Manifest(**d)
if datetime.now(timezone.utc) > manifest.expires_on:
if datetime.now(timezone.utc) > manifest.expires_on.astimezone(timezone.utc):
raise ValueError(f"Manifest URLs have expired on {manifest.expires_on}")
console = Console()