mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-05-16 13:56:11 +08:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user