From bffbb82838133dac021fc5b016ef3df7962483e0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 11 Jul 2024 20:09:24 -0400 Subject: lv2specgen: Avoid deprecated datetime.utcfromtimestamp --- lv2specgen/lv2specgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lv2specgen') 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")) -- cgit v1.2.1