Skip to content

Commit

Permalink
debug failed CI (Unable to import 'pytz')
Browse files Browse the repository at this point in the history
  • Loading branch information
HuijingHei committed Jan 16, 2025
1 parent 7a9b9a8 commit 65eb6df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cmd-coreos-prune
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import argparse
import json
import subprocess
from urllib.parse import urlparse
import pytz
import requests
import yaml
import collections
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 65eb6df

Please sign in to comment.