Replace old strftime format by %c, old format forces "Mon Day",

sequence which can be false for several languages.
This commit is contained in:
Andrey A. Chernov 1995-08-08 03:32:03 +00:00
parent 668eb4585f
commit 3bef267d25
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10001

View file

@ -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)