aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-05-03 19:50:38 +0000
committerTibor Frank <tifrank@cisco.com>2018-05-03 19:53:22 +0000
commitee95ebc097867ef8df96d5bb2724a9a0ed1080ea (patch)
tree285e2e2d1f1b4c097ddf2dafd7bc601046fa4215
parent27d7d6a79f971c6d6daaa024ce76ca4892a55ce2 (diff)
Report: Add time to the timestamp
Change-Id: I323517fbac177ef31861be747feeb81968d2b330 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit b3d9cf247f3de5558b0a8e42b63178dc1924ee73)
-rw-r--r--resources/tools/presentation/generator_report.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/tools/presentation/generator_report.py b/resources/tools/presentation/generator_report.py
index 67701be182..c9ee22f961 100644
--- a/resources/tools/presentation/generator_report.py
+++ b/resources/tools/presentation/generator_report.py
@@ -48,7 +48,7 @@ HTML_BUILDER = 'sphinx-build -v -c . -a ' \
'-b html -E ' \
'-t html ' \
'-D release={release} ' \
- '-D version="{release} report - {date}" ' \
+ '-D version="{release} report\n{date}" ' \
'{working_dir} ' \
'{build_dir}/'
@@ -57,7 +57,7 @@ PDF_BUILDER = 'sphinx-build -v -c . -a ' \
'-b latex -E ' \
'-t latex ' \
'-D release={release} ' \
- '-D version="{release} report - {date}" ' \
+ '-D version="{release} report\n{date}" ' \
'{working_dir} ' \
'{build_dir}'
@@ -103,7 +103,7 @@ def generate_html_report(release, spec, versions):
cmd = HTML_BUILDER.format(
release=release,
- date=datetime.datetime.utcnow().strftime('%m/%d/%Y %H:%M'),
+ date=datetime.datetime.utcnow().strftime('%m/%d/%Y %H:%M UTC'),
working_dir=spec.environment["paths"]["DIR[WORKING,SRC]"],
build_dir=spec.environment["paths"]["DIR[BUILD,HTML]"])
execute_command(cmd)
@@ -148,7 +148,7 @@ def generate_pdf_report(release, spec, versions):
build_dir = spec.environment["paths"]["DIR[BUILD,LATEX]"]
cmd = PDF_BUILDER.format(
release=release,
- date=datetime.datetime.utcnow().strftime('%m/%d/%Y %H:%M'),
+ date=datetime.datetime.utcnow().strftime('%m/%d/%Y %H:%M UTC'),
working_dir=spec.environment["paths"]["DIR[WORKING,SRC]"],
build_dir=build_dir)
execute_command(cmd)