Skip to content

Commit

Permalink
Replace deprecated utcfromtimestamp()
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Jan 15, 2025
1 parent e52b20f commit a77cdd3
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 @@ -31,8 +31,8 @@
source_suffix = ".rst"
master_doc = "index"
project = project_data.get("name").upper()
year = datetime.datetime.utcfromtimestamp(
int(os.environ.get("SOURCE_DATE_EPOCH", time.time()))
year = datetime.datetime.fromtimestamp(
int(os.environ.get("SOURCE_DATE_EPOCH", time.time())), datetime.timezone.utc
).year
copyright = f"2010–{year}" # noqa: RUF001
exclude_patterns = ["_build"]
Expand Down

0 comments on commit a77cdd3

Please sign in to comment.