The timestamp generated for each job is not in ISO format,
let's fix that.

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
---
 contrib/virt/site_job.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/virt/site_job.py b/contrib/virt/site_job.py
index 852b121..47c9221 100644
--- a/contrib/virt/site_job.py
+++ b/contrib/virt/site_job.py
@@ -177,7 +177,7 @@ class site_job_create(job.job_create):
         #
         if self.command_line_options.timestamp:
             logging.debug("Adding timestamp to jobname")
-            timestamp = time.strftime(" %m-%d-%Y %H:%M:%S", time.localtime())
+            timestamp = time.strftime(" %Y-%m-%d %H:%M:%S", time.localtime())
             self.jobname += timestamp
             self.data['name'] = self.jobname
 
-- 
1.7.11.2

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to