From 951280bca54a5504ccb9435b018ee9333b391601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Mon, 22 Jul 2024 15:17:45 +0200 Subject: [PATCH] Address gitchangelog deprecation warning --- contrib/gitchangelog/gitchangelog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/gitchangelog/gitchangelog.py b/contrib/gitchangelog/gitchangelog.py index ebb283db39..7193dddc3d 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):