From: Arran Cudbard-Bell Date: Fri, 25 May 2018 06:57:41 +0000 (+0600) Subject: Gets date_utc from the log structure X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd0978fd7bfb4e28f46cbb506b24f46ccc34d21d;p=thirdparty%2Ffreeradius-server.git Gets date_utc from the log structure --- diff --git a/src/lib/util/log.c b/src/lib/util/log.c index 505a90000bc..cc4377c75d5 100644 --- a/src/lib/util/log.c +++ b/src/lib/util/log.c @@ -230,7 +230,7 @@ int fr_vlog(fr_log_t const *log, fr_log_type_t type, char const *msg, va_list ap timeval = time(NULL); #ifdef HAVE_GMTIME_R - if (log_dates_utc) { + if (log->dates_utc) { struct tm utc; gmtime_r(&timeval, &utc); ASCTIME_R(&utc, buffer + len, sizeof(buffer) - len - 1);