>From POSIX:

When no formatting operand is specified, the output in the POSIX
locale shall be equivalent to specifying:

           date "+%a %b %e %H:%M:%S %Z %Y"
---
 date.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/date.c b/date.c
index 97c910c..109f371 100644
--- a/date.c
+++ b/date.c
@@ -66,7 +66,7 @@ main(int argc, char *argv[])
 {
        struct tm *now;
        time_t t;
-       char buf[BUFSIZ], *fmt = "%c";
+       char buf[BUFSIZ], *fmt = "%a %b %e %H:%M:%S %Z %Y";
 
        t = time(NULL);
        if (t == -1)
-- 
2.19.1


Reply via email to