From d0e0d9c4c54151deaf326cebdbbe75aca6e9a613 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sun, 6 Aug 1995 11:48:16 +0000 Subject: [PATCH] Fix default %c to be ctime-compatible as supposed (by Solaris too) --- lib/libc/stdtime/strftime.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c index a300ed6877e3..640a144164aa 100644 --- a/lib/libc/stdtime/strftime.c +++ b/lib/libc/stdtime/strftime.c @@ -17,7 +17,7 @@ #ifdef LIBC_RCS static const char rcsid[] = - "$Id$"; + "$Id: strftime.c,v 1.3 1995/08/04 18:43:01 wollman Exp $"; #endif #ifndef lint @@ -93,12 +93,12 @@ static const struct lc_time_T C_time_locale = { "%m/%d/%y", /* - ** c_fmt + ** c_fmt (ctime-compatible) ** Note that ** "%a %b %d %H:%M:%S %Y" ** is used by Solaris 2.3. */ - "%D %X", /* %m/%d/%y %H:%M:%S */ + "%a %b %e %X %Y", /* am */ "AM", @@ -107,7 +107,7 @@ static const struct lc_time_T C_time_locale = { "PM", /* date_fmt */ - "%a %b %e %H:%M:%S %Z %Y" + "%a %b %e %X %Z %Y" }; static char * _add P((const char *, char *, const char *));