From c78c3bc2a68c270119c53c8855e80db855427ac2 Mon Sep 17 00:00:00 2001 From: Larry Bradley Date: Tue, 26 Sep 2023 20:16:17 -0400 Subject: [PATCH] Replace deprecated utcnow --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 62bfc39..27d2995 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,7 +14,7 @@ import os import sys -from datetime import datetime +from datetime import datetime, timezone from pathlib import Path if sys.version_info < (3, 11): @@ -65,7 +65,7 @@ # -- Project information ------------------------------------------------------ project = project_meta['name'] author = project_meta['authors'][0]['name'] -copyright = f'2014-{datetime.utcnow().year}, {author}' +copyright = f'2014-{datetime.now(tz=timezone.utc).year}, {author}' # The version info for the project you're documenting, acts as # replacement for |version| and |release|, also used in various other