diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-11-13 10:15:05 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-11-13 10:55:11 +0000 |
commit | cb1d32266911d193e46b5f1c3ae4aeaf1a7ce33b (patch) | |
tree | b97def77acfd84e93f84d5c31f0d30ca54e4e650 /resources/tools | |
parent | aa7298d7bb1bb1aa95b39886e4f2feceff85c029 (diff) |
PAL: Change date format according to iso8601
Change-Id: I326d651feb9007684cb60b67dc8f30696cd58a4c
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit d1735e8a571722ef47ef9da3fe297e517a784f5c)
Diffstat (limited to 'resources/tools')
-rw-r--r-- | resources/tools/presentation/generator_CPTA.py | 2 | ||||
-rw-r--r-- | resources/tools/presentation/generator_report.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py index d69c667594..28b64d5776 100644 --- a/resources/tools/presentation/generator_CPTA.py +++ b/resources/tools/presentation/generator_CPTA.py @@ -124,7 +124,7 @@ def generate_cpta(spec, data): ret_code = _generate_all_charts(spec, data) cmd = HTML_BUILDER.format( - date=datetime.utcnow().strftime('%m/%d/%Y %H:%M UTC'), + date=datetime.utcnow().strftime('%Y-%m-%dT%H:%MZ'), working_dir=spec.environment["paths"]["DIR[WORKING,SRC]"], build_dir=spec.environment["paths"]["DIR[BUILD,HTML]"]) execute_command(cmd) diff --git a/resources/tools/presentation/generator_report.py b/resources/tools/presentation/generator_report.py index 2f35b66425..0fff90a204 100644 --- a/resources/tools/presentation/generator_report.py +++ b/resources/tools/presentation/generator_report.py @@ -157,7 +157,7 @@ def generate_html_report(release, spec, versions, report_version): cmd = HTML_BUILDER.format( release=release, report_version=report_version, - date=datetime.datetime.utcnow().strftime('%m/%d/%Y %H:%M UTC'), + date=datetime.datetime.utcnow().strftime('%Y-%m-%dT%H:%MZ'), working_dir=working_dir, build_dir=spec.environment["paths"]["DIR[BUILD,HTML]"]) execute_command(cmd) @@ -212,7 +212,7 @@ def generate_pdf_report(release, spec, versions, report_version): cmd = PDF_BUILDER.format( release=release, report_version=report_version, - date=datetime.datetime.utcnow().strftime('%m/%d/%Y %H:%M UTC'), + date=datetime.datetime.utcnow().strftime('%Y-%m-%dT%H:%MZ'), working_dir=working_dir, build_dir=build_dir) execute_command(cmd) |