mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Replace deprecated utcfromtimestamp()
This commit is contained in:
parent
e52b20fad5
commit
a77cdd3749
1 changed files with 2 additions and 2 deletions
|
|
@ -31,8 +31,8 @@ extensions = [
|
|||
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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue