From: Sebastien GODARD Date: Sun, 4 Sep 2022 08:50:06 +0000 (+0200) Subject: SVG: Print time zone instead of UTC in true time mode (#331) X-Git-Tag: v12.7.1~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=217ee12;p=sysstat 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 --- 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"); } }