py/makeversionhdr.py: Change utcfromtimestamp() to fromtimestamp().
The former is deprecated. Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
This commit is contained in:
committed by
Damien George
parent
aedaa40595
commit
1b123579a2
@@ -117,8 +117,8 @@ def make_version_header(repo_path, filename):
|
|||||||
|
|
||||||
build_date = datetime.date.today()
|
build_date = datetime.date.today()
|
||||||
if "SOURCE_DATE_EPOCH" in os.environ:
|
if "SOURCE_DATE_EPOCH" in os.environ:
|
||||||
build_date = datetime.datetime.utcfromtimestamp(
|
build_date = datetime.datetime.fromtimestamp(
|
||||||
int(os.environ["SOURCE_DATE_EPOCH"])
|
int(os.environ["SOURCE_DATE_EPOCH"]), datetime.timezone.utc
|
||||||
).date()
|
).date()
|
||||||
|
|
||||||
# Generate the file with the git and version info
|
# Generate the file with the git and version info
|
||||||
|
|||||||
Reference in New Issue
Block a user