From fc4a9baf509eec03e80fe83243e7ab2bdee3b118 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 8 Aug 1995 00:03:04 +0000 Subject: [PATCH] Change ctime to strftime %c to use national date/time representation --- bin/ls/print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ls/print.c b/bin/ls/print.c index 03b928853c1..96ed41d219f 100644 --- a/bin/ls/print.c +++ b/bin/ls/print.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: print.c,v 1.4 1995/05/30 00:06:50 rgrimes Exp $ + * $Id: print.c,v 1.5 1995/08/07 19:17:35 wollman Exp $ */ #ifndef lint @@ -227,9 +227,9 @@ printtime(ftime) time_t ftime; { int i; - char *longstring; + char longstring[80]; - longstring = ctime(&ftime); + strftime(longstring, sizeof(longstring), "%c", localtime(&ftime)); for (i = 4; i < 11; ++i) (void)putchar(longstring[i]);