From 0a975f104f0af27f517bc8eaf9ae662915ae4e97 Mon Sep 17 00:00:00 2001 From: Georg Kunz Date: Mon, 20 Nov 2017 10:24:26 +0100 Subject: Include full date in name of compressed result file The name of the compressed result file included a timestamp according to the pattern "day_hour_minute". This is a rather uncommon timestamp and can cause confusion. This patch changes the timestamp to a more common "YearMonthDay-HourMinute" format. Please note: Please check if this change has an impact on the web portal. Change-Id: Ife41050bc1d5ca6942706b756d03a1d0d251ae41 Signed-off-by: Georg Kunz --- dovetail/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dovetail/report.py b/dovetail/report.py index 41f14b53..12d6dcad 100644 --- a/dovetail/report.py +++ b/dovetail/report.py @@ -163,7 +163,7 @@ class Report(object): @classmethod def save_logs(cls): - file_suffix = time.strftime('%d_%H_%M', time.localtime(time.time())) + file_suffix = time.strftime('%Y%m%d_%H%M', time.localtime()) logs_gz = "logs_{}.tar.gz".format(file_suffix) result_dir = dt_cfg.dovetail_config['result_dir'] -- cgit 1.2.3-korg