From a8449c769e628d84c531cc0ae8c6203b3f3a9ead Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Nov 04 2020 00:45:32 +0000 Subject: bumpspec: Add zero-padding to day of the month with legacy datestamp This is how the legacy datestamp looked like. --- diff --git a/rpmdev-bumpspec b/rpmdev-bumpspec index bc0a84c..dc4eb05 100755 --- a/rpmdev-bumpspec +++ b/rpmdev-bumpspec @@ -167,7 +167,7 @@ class SpecFile(object): if opts.datestamp: date = self.validateDatestamp(opts.datestamp) elif opts.legacy_datestamp: - date = time.strftime("%a %b %e %Y", time.gmtime()) + date = time.strftime("%a %b %d %Y", time.gmtime()) else: date = time.strftime("%a %b %e %T %Z %Y", time.localtime()) newchangelogentry = "* %s %s%s\n%s\n\n" % \