Skip to content

Commit

Permalink
Replace deprecated utcnow
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybradley committed Sep 27, 2023
1 parent 51602d2 commit 8036465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -68,7 +68,7 @@
# -- Project information ------------------------------------------------------
project = project_meta['name']
author = project_meta['authors'][0]['name']
copyright = f'2011-{datetime.utcnow().year}, {author}'
copyright = f'2011-{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
Expand Down

0 comments on commit 8036465

Please sign in to comment.