From 9332de778be26b1861a5ed697088c53e1eaa1cde Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Jan 17 2023 18:38:31 +0000 Subject: Fix wrong year in changelog (fix #284) The upper-case Y formats the ISO week year, which usually does not align with the calendar year around the new year. Correct the format string to prevent bogus dates in generated changelogs. Signed-off-by: Benjamin A. Beasley --- diff --git a/rpmautospec/changelog.py b/rpmautospec/changelog.py index 27e1b37..ff75a66 100644 --- a/rpmautospec/changelog.py +++ b/rpmautospec/changelog.py @@ -107,7 +107,7 @@ class ChangelogEntry(dict): return entry_info["data"] changelog_date = format_datetime( - entry_info["timestamp"], format="EEE MMM dd Y", locale="en" + entry_info["timestamp"], format="EEE MMM dd y", locale="en" ) if entry_info["epoch-version"]: