Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def _replace_file(original_path):

def _changelog_update_unreleased_title(version, *, file):
"""Update an "*unreleased*" heading to "{version} - {date}" """
yyyy_mm_dd = datetime.datetime.today().strftime("%Y-%m-%d")
yyyy_mm_dd = datetime.datetime.now(tz=datetime.timezone.utc).strftime("%Y-%m-%d")
title = f"{version} - {yyyy_mm_dd}"

with _replace_file(file) as (original, replacement):
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ extend-exclude = [
extend-select = [
"ARG", # flake8-unused-argument
"B", # flake8-bugbear
"DTZ", # flake8-datetimez
"E",
"EXE", # flake8-executable
"F",
Expand Down
6 changes: 4 additions & 2 deletions tests/test_pylock.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import datetime
import sys
from datetime import datetime
from pathlib import Path
from typing import Any

Expand Down Expand Up @@ -368,7 +368,9 @@ def test_pylock_tool() -> None:
"sdist": {
"name": "example-1.0.tar.gz",
"path": "./example-1.0.tar.gz",
"upload-time": datetime(2023, 10, 1, 0, 0),
"upload-time": datetime.datetime(
2023, 10, 1, 0, 0, tzinfo=datetime.timezone.utc
),
"hashes": {"sha256": "f" * 40},
},
"tool": {"pip": {"foo": "bar"}},
Expand Down
Loading