aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen/lv2specgen.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-07-11 20:09:24 -0400
committerDavid Robillard <d@drobilla.net>2024-07-11 20:21:28 -0400
commitbffbb82838133dac021fc5b016ef3df7962483e0 (patch)
treeb5a99ccc59b922035bf725897999b3bac0bc2605 /lv2specgen/lv2specgen.py
parent56f8a6dc21e4e256587751edde188e4add8c2d13 (diff)
downloadlv2-bffbb82838133dac021fc5b016ef3df7962483e0.tar.xz
lv2specgen: Avoid deprecated datetime.utcfromtimestamp
Diffstat (limited to 'lv2specgen/lv2specgen.py')
-rwxr-xr-xlv2specgen/lv2specgen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index d6e86f8..2226f43 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -1327,7 +1327,7 @@ def specgen(
template = template.replace("@DESCRIPTION@", docs)
now = int(os.environ.get("SOURCE_DATE_EPOCH", time.time()))
- build_date = datetime.datetime.utcfromtimestamp(now)
+ build_date = datetime.datetime.fromtimestamp(now, datetime.timezone.utc)
template = template.replace("@DATE@", build_date.strftime("%F"))
template = template.replace("@TIME@", build_date.strftime("%F %H:%M UTC"))