1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 09:21:26 +03:00

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

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;