diff --git a/src/pkgmgr/actions/release/files/changelog_md.py b/src/pkgmgr/actions/release/files/changelog_md.py index 2922f93..f1f5e36 100644 --- a/src/pkgmgr/actions/release/files/changelog_md.py +++ b/src/pkgmgr/actions/release/files/changelog_md.py @@ -3,7 +3,7 @@ from __future__ import annotations import os import re import sys -from datetime import date +from datetime import datetime from .changelog_lint import ( ChangelogLintError, @@ -69,7 +69,7 @@ def update_changelog( missing) and above any existing release entries, so the result stays markdown-lint-clean (MD041 first-line-h1, MD012 no-multiple-blanks). """ - today = date.today().isoformat() # noqa: DTZ011 - changelog dates are local calendar dates + today = datetime.now().astimezone().date().isoformat() def _entry_for(raw: str) -> tuple[str, str]: body = transform_changelog_message(raw).strip() or f"Release {new_version}"