diff --git a/README.rst b/README.rst index 939b67b..a3aca2a 100644 --- a/README.rst +++ b/README.rst @@ -29,7 +29,7 @@ Note: You can also generate a good basic changelog using:: git log --after=2018-01-28 --pretty=oneline \ --format='%w(1000)**%h**%n* %cd %an <%ae>%n%w(60,0,2)- %s%n' \ - --date="format:%a %b %d %Y" + --date="format:%a %b %d %T %Z %Y" diff --git a/generate_changelog.py b/generate_changelog.py index 51354c6..d5fcfc7 100644 --- a/generate_changelog.py +++ b/generate_changelog.py @@ -99,9 +99,9 @@ def main(args): message = wrapper.fill(commit.message.split('\n')[0].strip('- ')) if last_commit: - print(f"* {commit_dt.strftime('%a %b %d %Y')} {commit.author.name} <{commit.author.email}> - {nvr[1]}-{nvr[2]}") + print(f"* {commit_dt.strftime('%a %b %d %T %Z %Y')} {commit.author.name} <{commit.author.email}> - {nvr[1]}-{nvr[2]}") else: - print(f"* {commit_dt.strftime('%a %b %d %Y')} {commit.author.name} <{commit.author.email}>") + print(f"* {commit_dt.strftime('%a %b %d %T %Z %Y')} {commit.author.name} <{commit.author.email}>") print("- %s" % message) print()