Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions py/makeversionhdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ def make_version_header(repo_path, filename):

build_date = datetime.date.today()
if "SOURCE_DATE_EPOCH" in os.environ:
build_date = datetime.datetime.utcfromtimestamp(
int(os.environ["SOURCE_DATE_EPOCH"])
build_date = datetime.datetime.fromtimestamp(
int(os.environ["SOURCE_DATE_EPOCH"]),
datetime.timezone.utc
).date()

# Generate the file with the git and version info
Expand Down
Loading