Skip to content

Commit

Permalink
ci: aware
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Sep 11, 2024
1 parent 83b5f82 commit a15afcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/nightly.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def prune_artifacts():
bucket = get_bucket()
for file, _ in bucket.ls(UPLOAD_FOLDER, latest_only=False):
# Timestamp is in milliseconds
date = datetime.fromtimestamp(file.upload_timestamp / 1_000.0).replace(hour=0, minute=0, second=0, microsecond=0)
date = datetime.fromtimestamp(file.upload_timestamp / 1_000.0, tz=timezone.utc).replace(hour=0, minute=0, second=0, microsecond=0)
now = datetime.now(timezone.utc).replace(hour=0, minute=0, second=0, microsecond=0)
delta = now - date

Expand Down

0 comments on commit a15afcc

Please sign in to comment.