]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
GNU gmtime_r *still* uses the value of TZ when printing %Z even with gmtime_r which...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 8 Oct 2019 17:32:19 +0000 (13:32 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 8 Oct 2019 17:32:27 +0000 (13:32 -0400)
src/lib/util/value.c

index f1461ca43ad6b0bb1169714c3446fde3cd4c47ed..2b5502b777b016ab329efe85b1d694e6e38c92af 100644 (file)
@@ -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 {