Replace ctime by strftime %c to use national representation

This commit is contained in:
Andrey A. Chernov 1995-08-08 03:20:25 +00:00
parent 6de8ce1a74
commit 668eb4585f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10000

View File

@ -961,7 +961,7 @@ long_format (file_hdr, link_name)
/* Get time values ready to print. */
when = file_hdr->c_mtime;
strcpy (tbuf, ctime (&when));
strftime(tbuf, sizeof(tbuf), "%c", localtime(&when));
if (current_time - when > 6L * 30L * 24L * 60L * 60L
|| current_time - when < 0L)
{