From: Nicki Křížek Date: Mon, 22 Jul 2024 13:17:45 +0000 (+0200) Subject: Address gitchangelog deprecation warning X-Git-Tag: alessio/regression/026024a6ae~30^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=951280bca54a5504ccb9435b018ee9333b391601;p=thirdparty%2Fbind9.git Address gitchangelog deprecation warning --- diff --git a/contrib/gitchangelog/gitchangelog.py b/contrib/gitchangelog/gitchangelog.py index ebb283db39e..7193dddc3d5 100755 --- a/contrib/gitchangelog/gitchangelog.py +++ b/contrib/gitchangelog/gitchangelog.py @@ -1104,7 +1104,9 @@ class GitCommit(SubGitObjectMixin): @property def tagger_date(self): - d = datetime.datetime.utcfromtimestamp(float(self.tagger_date_timestamp)) + d = datetime.datetime.fromtimestamp( + float(self.tagger_date_timestamp), datetime.UTC + ) return d.strftime("%Y-%m-%d") def __le__(self, value):