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:
parent
01d183ddae
commit
525716e2f9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user