util: drop "," between week day and date when formatting timestamps

The glibc default (as shown by the command line tool "date") doesn't put a comma there,
and so we shouldn't either.
This commit is contained in:
Lennart Poettering 2012-11-23 16:24:59 +01:00
parent 01d183ddae
commit 525716e2f9
1 changed files with 1 additions and 1 deletions

View File

@ -1968,7 +1968,7 @@ char *format_timestamp(char *buf, size_t l, usec_t t) {
sec = (time_t) (t / USEC_PER_SEC);
if (strftime(buf, l, "%a, %Y-%m-%d %H:%M:%S %Z", localtime_r(&sec, &tm)) <= 0)
if (strftime(buf, l, "%a %Y-%m-%d %H:%M:%S %Z", localtime_r(&sec, &tm)) <= 0)
return NULL;
return buf;