From 72766c8177fb76ac5ca4cbbfe616c19ec4a9a97a Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Fri, 20 May 2022 10:27:49 +0200 Subject: fix(dash): improve date formatting in hover Bring it closer to RFC 3339 while keeping spaces. The fully compatible format (2022-03-29T08:45:02Z) may look too exotic for average human. Dates other than in hover (e.g. in Time Period selection) are not affected by this Change. Change-Id: Ic5033d1b0db8505b0919e6a1392e28004c718f21 Signed-off-by: Vratko Polak --- resources/tools/dash/app/pal/stats/graphs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/tools/dash/app/pal/stats') diff --git a/resources/tools/dash/app/pal/stats/graphs.py b/resources/tools/dash/app/pal/stats/graphs.py index db6937402a..c1f58f2405 100644 --- a/resources/tools/dash/app/pal/stats/graphs.py +++ b/resources/tools/dash/app/pal/stats/graphs.py @@ -47,7 +47,7 @@ def graph_statistics(df: pd.DataFrame, job:str, layout: dict, for _, row in data.iterrows(): d_type = "trex" if row["dut_type"] == "none" else row["dut_type"] hover_itm = ( - f"date: {row['start_time'].strftime('%d-%m-%Y %H:%M:%S')}
" + f"date: {row['start_time'].strftime('%Y-%m-%d %H:%M:%S')}
" f"duration: " f"{(int(row['duration']) // 3600):02d}:" f"{((int(row['duration']) % 3600) // 60):02d}
" -- cgit 1.2.3-korg