summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-08-06 11:48:16 +0000
committerache <ache@FreeBSD.org>1995-08-06 11:48:16 +0000
commit36df651f43d9efbfb892c430c378aef94056dac5 (patch)
treeaeaa7957df2e9c0b31bb644ee766213525450745 /lib/libc/stdtime
parentba987a9a72ffbf7940588eac6dffdecfc5c92e42 (diff)
downloadFreeBSD-src-36df651f43d9efbfb892c430c378aef94056dac5.zip
FreeBSD-src-36df651f43d9efbfb892c430c378aef94056dac5.tar.gz
Fix default %c to be ctime-compatible as supposed (by Solaris too)
Diffstat (limited to 'lib/libc/stdtime')
-rw-r--r--lib/libc/stdtime/strftime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c
index a300ed6..640a144 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 *));
OpenPOWER on IntegriCloud