National date/time representation in syslog logfiles looks ugly,

change strftime to ctime. Logfiles must have default (english) date/time
representation for access/view from various places.
This commit is contained in:
Andrey A. Chernov 1995-08-29 13:21:53 +00:00
parent 4f898a4b38
commit 85b3ab5887
1 changed files with 1 additions and 2 deletions

View File

@ -121,8 +121,7 @@ vsyslog(pri, fmt, ap)
/* Build the message. */
(void)time(&now);
p = tbuf + sprintf(tbuf, "<%d>", pri);
p += strftime(p, sizeof (tbuf) - (p - tbuf), "%h %e %T ",
localtime(&now));
p += sprintf(p, "%.15s ", ctime(&now) + 4);
if (LogStat & LOG_PERROR)
stdp = p;
if (LogTag == NULL)