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:
ache 1995-08-29 13:21:53 +00:00
parent 9bc3325936
commit 44816c13e1

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)