From 65eb6df5a17c84afd9d77a7a33c86b322182ef2d Mon Sep 17 00:00:00 2001 From: HuijingHei Date: Thu, 16 Jan 2025 20:58:12 +0800 Subject: [PATCH] debug failed CI (Unable to import 'pytz') --- src/cmd-coreos-prune | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cmd-coreos-prune b/src/cmd-coreos-prune index af7b96edf8..d755dd4a24 100755 --- a/src/cmd-coreos-prune +++ b/src/cmd-coreos-prune @@ -36,7 +36,6 @@ import argparse import json import subprocess from urllib.parse import urlparse -import pytz import requests import yaml import collections @@ -273,7 +272,7 @@ def get_json_from_s3(s3, bucket, key): def save_builds_json(builds_json_data, location): - builds_json_data["timestamp"] = datetime.datetime.now(pytz.utc).strftime("%Y-%m-%dT%H:%M:%SZ") + builds_json_data["timestamp"] = datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") with open(location, "w") as json_file: json.dump(builds_json_data, json_file, indent=4)