use the C locale for generating the date string for the specfile changelog

This produces exactly the same output as the en_US locale, and is guaranteed to be supported
in all environments.
This commit is contained in:
Mike Bonnet
2019-11-01 15:44:38 -07:00
parent 86c85825ee
commit e582126106

View File

@@ -302,7 +302,7 @@ class KojiModuleBuilder(GenericBuilder):
name = "module-build-macros"
version = "0.1"
release = "1"
with set_locale(locale.LC_TIME, "en_US.utf8"):
with set_locale(locale.LC_TIME, "C"):
today = datetime.date.today().strftime("%a %b %d %Y")
mmd = module_build.mmd()