Skip to content

Commit 8cdd618

Browse files
thesamesamarthurzam
authored andcommitted
pkgcore: eclass: avoid deprecated utcnow()
Signed-off-by: Sam James <sam@gentoo.org> Closes: pkgcore#450 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent a05dc1c commit 8cdd618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pkgcore/ebuild/eclass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def to_man(self):
706706
man_data = {
707707
"manual_section": "5",
708708
"manual_group": "eclass-manpages",
709-
"date": datetime.utcnow().strftime("%Y-%m-%d"),
709+
"date": datetime.datetime.now(datetime.UTC).strftime("%Y-%m-%d"),
710710
"version": "Gentoo Linux",
711711
}
712712
if self.blurb:

0 commit comments

Comments
 (0)