Skip to content

Commit

Permalink
Merge branch 'main' into add-logging-to-fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed May 30, 2024
2 parents e94d685 + 2549247 commit 809af1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/remove_it.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def clean_dir(pub, ref_time, pathname, is_dry_run):
LOGGER.warning("Couldn't lstat path=%s", str(filename))
continue

if dt.datetime.fromtimestamp(stat.st_ctime) < ref_time:
if dt.datetime.fromtimestamp(stat.st_ctime, dt.timezone.utc) < ref_time:
was_removed = False
if not is_dry_run:
was_removed = remove_file(filename, pub)
Expand Down

0 comments on commit 809af1e

Please sign in to comment.