Skip to content

Commit

Permalink
build: fix datetime deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bastimeyer committed Sep 7, 2024
1 parent 1af1713 commit 5ea7cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-portable-commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_args():
command.update(extra_preamble=extra_preamble)

timestamp = int(os.getenv("SOURCE_DATE_EPOCH", time.time()))
with freeze_time(datetime.datetime.utcfromtimestamp(timestamp)):
with freeze_time(datetime.datetime.fromtimestamp(timestamp, tz=datetime.timezone.utc)):
prepare_bin_directory(
args.target,
commands,
Expand Down

0 comments on commit 5ea7cdb

Please sign in to comment.