diff options
author | David Robillard <d@drobilla.net> | 2024-07-11 20:09:24 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-11 20:21:28 -0400 |
commit | bffbb82838133dac021fc5b016ef3df7962483e0 (patch) | |
tree | b5a99ccc59b922035bf725897999b3bac0bc2605 /lv2specgen | |
parent | 56f8a6dc21e4e256587751edde188e4add8c2d13 (diff) | |
download | lv2-bffbb82838133dac021fc5b016ef3df7962483e0.tar.xz |
lv2specgen: Avoid deprecated datetime.utcfromtimestamp
Diffstat (limited to 'lv2specgen')
-rwxr-xr-x | lv2specgen/lv2specgen.py | 2 |
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")) |