From c980a588023bb8eda6c363c6a8c15147ad823288 Mon Sep 17 00:00:00 2001 From: Jeff Scheel Date: Mon, 8 May 2017 15:25:28 -0500 Subject: [PATCH] Correct date formatting in opf_docbook.py in revhistory. Signed-off-by: Jeff Scheel --- rst_template/opf_docbook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rst_template/opf_docbook.py b/rst_template/opf_docbook.py index 1abf173..d01ca33 100644 --- a/rst_template/opf_docbook.py +++ b/rst_template/opf_docbook.py @@ -141,7 +141,7 @@ def build_revhistory(book_file): from subprocess import Popen, PIPE # Variables for formating git log - log_format = '%h%x01%an%x01%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x01%s%x02' + log_format = '%h%x01%an%x01%ad%x01%s%x02' log_fields = ['id', 'author', 'date', 'subject'] # Retrieve log @@ -154,7 +154,7 @@ def build_revhistory(book_file): # Format log into revision history revision = '\n' for entry in log: - revision = revision + '' + entry['date'] + '' +\ + revision = revision + '' + entry['date'].split(' ')[0] + '' +\ entry['subject'] + ' (' + entry['id'] + ')\n' revision = revision + '\n'