From: Arran Cudbard-Bell Date: Tue, 8 Oct 2019 17:32:19 +0000 (-0400) Subject: GNU gmtime_r *still* uses the value of TZ when printing %Z even with gmtime_r which... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cbb37b01f952a28aba376667d48818aa352ebf0;p=thirdparty%2Ffreeradius-server.git GNU gmtime_r *still* uses the value of TZ when printing %Z even with gmtime_r which provides the time as UTC‽ --- diff --git a/src/lib/util/value.c b/src/lib/util/value.c index f1461ca43ad..2b5502b777b 100644 --- a/src/lib/util/value.c +++ b/src/lib/util/value.c @@ -4975,9 +4975,9 @@ size_t fr_value_box_snprint(char *out, size_t outlen, fr_value_box_t const *data if (!data->enumv || (data->enumv->flags.type_size == FR_TIME_RES_SEC)) { if (quote > 0) { - len = strftime(buf, sizeof(buf) - 1, "%%%b %e %Y %H:%M:%S %Z", &s_tm); + len = strftime(buf, sizeof(buf) - 1, "%%%b %e %Y %H:%M:%S UTC", &s_tm); } else { - len = strftime(buf, sizeof(buf), "%b %e %Y %H:%M:%S %Z", &s_tm); + len = strftime(buf, sizeof(buf), "%b %e %Y %H:%M:%S UTC", &s_tm); } } else {