[systemd-commits] src/shared

Lennart Poettering lennart at kemper.freedesktop.org
Fri Nov 23 07:26:59 PST 2012


 src/shared/util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 525716e2f9de779cba3e92d9135b2de64e937aa8
Author: Lennart Poettering <lennart at poettering.net>
Date:   Fri Nov 23 16:24:59 2012 +0100

    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.

diff --git a/src/shared/util.c b/src/shared/util.c
index d771d32..37fd1ad 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -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;



More information about the systemd-commits mailing list