summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/ar/contents.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ar/contents.c b/usr.bin/ar/contents.c
index dc45b36..e000d535d 100644
--- a/usr.bin/ar/contents.c
+++ b/usr.bin/ar/contents.c
@@ -77,8 +77,10 @@ contents(argv)
(void)printf("%s %6d/%-6d %8qd ",
buf + 1, chdr.uid, chdr.gid, chdr.size);
tp = localtime(&chdr.date);
- (void)strftime(buf, sizeof(buf), "%b %e %H:%M %Y", tp);
- (void)printf("%s %s\n", buf, file);
+ (void)strftime(buf, sizeof(buf), "%c", tp);
+ buf[16] = '\0';
+ buf[24] = '\0';
+ (void)printf("%s %s %s\n", buf + 4, buf + 20, file);
} else
(void)printf("%s\n", file);
if (!all && !*argv)
OpenPOWER on IntegriCloud