From 217ee12e96bd01bb04fada08c2629a0b5cacd597 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sun, 4 Sep 2022 10:50:06 +0200 Subject: [PATCH] SVG: Print time zone instead of UTC in true time mode (#331) sadf -g -t should not display "UTC" but the real time zone of the user who created the datafile. Signed-off-by: Sebastien GODARD --- svg_stats.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/svg_stats.c b/svg_stats.c index 7265c77..e9c4484 100644 --- a/svg_stats.c +++ b/svg_stats.c @@ -740,8 +740,9 @@ void display_vgrid(long int xpos, double xfactor, int v_gridnr, struct svg_parm if (!PRINT_LOCAL_TIME(flags)) { printf("UTC\n", - svg_colors[palette][SVG_COL_INFO_IDX]); + "text-anchor: end\">%s\n", + svg_colors[palette][SVG_COL_INFO_IDX], + PRINT_TRUE_TIME(flags) ? svg_p->file_hdr->sa_tzname : "UTC"); } } -- 2.40.0