From cb7b9dda6ccb182306a38c38199f0921eeaa510d Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Fri, 21 Mar 2025 11:46:57 -0700 Subject: [PATCH] fix: compare timezones correctly in download script --- llama_stack/cli/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_stack/cli/download.py b/llama_stack/cli/download.py index f1b722183..fac89df09 100644 --- a/llama_stack/cli/download.py +++ b/llama_stack/cli/download.py @@ -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()