Replace ctime by strftime %c to use national representation
This commit is contained in:
parent
6de8ce1a74
commit
668eb4585f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10000
@ -961,7 +961,7 @@ long_format (file_hdr, link_name)
|
|||||||
|
|
||||||
/* Get time values ready to print. */
|
/* Get time values ready to print. */
|
||||||
when = file_hdr->c_mtime;
|
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
|
if (current_time - when > 6L * 30L * 24L * 60L * 60L
|
||||||
|| current_time - when < 0L)
|
|| current_time - when < 0L)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user