forked from phoenix-oss/llama-stack-mirror
fix: compare timezones correctly in download script
This commit is contained in:
parent
f76550ce4e
commit
cb7b9dda6c
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue