#46 Use new-style date in changelog (with TZ)
Merged 5 years ago by ngompa. Opened 5 years ago by eclipseo.
eclipseo/rpmdevtools new_style_date  into  master

file modified
+1 -1
@@ -154,7 +154,7 @@ 

                      evrstring = ' - %s' % evr

                  else:

                      evrstring = ''

-                 date = time.strftime("%a %b %d %Y", time.gmtime())

+                 date = time.strftime("%a %b %d %T %Z %Y", time.gmtime())

                  newchangelogentry = "* %s %s%s\n%s\n\n" % \

                      (date, email, evrstring, entry)

                  self.lines[i] += newchangelogentry

file modified
+1 -1
@@ -293,7 +293,7 @@ 

  $ {

      g

      s/^(Name:[ \\t]*)[^\\n]*/\\1$appname/IMg

-     s|^%changelog\\s*|%changelog\\n* $(LC_ALL=C date --utc +'%a %b %e %Y') $(rpmdev-packager)\\n- |Mg

+     s|^%changelog\\s*|%changelog\\n* $(LC_ALL=C date +'%a %b %d %T %Z %Y') $(rpmdev-packager)\\n- |Mg

      $specfilter

      p

  }" > "$specfile"

New format used in 4.14.2

Well, it seems all supported Fedora releases use RPM 4.14+, so this looks good to me!

Pull-Request has been merged by ngompa

5 years ago

@eclipseo technically this has existed in 4.14.0-rc1, but whatever :)

Metadata