From 16963e56247fb59b133c005b29724c029aaa1540 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Mon, 14 Mar 2005 23:55:41 +0000 Subject: [PATCH] Instead of using the non-standard conforming %+ format string, use nl_langinfo to query the default format string. --- bin/date/date.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/date/date.c b/bin/date/date.c index 23f79a07ed..f4697c98b5 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1985, 1987, 1988, 1993 The Regents of the University of California. All rights reserved. * @(#)date.c 8.2 (Berkeley) 4/28/95 * $FreeBSD: src/bin/date/date.c,v 1.32.2.6 2001/10/31 17:31:51 dillon Exp $ - * $DragonFly: src/bin/date/date.c,v 1.8 2004/11/07 20:54:51 eirikn Exp $ + * $DragonFly: src/bin/date/date.c,v 1.9 2005/03/14 23:55:41 joerg Exp $ */ #include @@ -46,6 +46,7 @@ #include #include #include +#include #include #include @@ -137,7 +138,7 @@ main(int argc, char **argv) if (!rflag && time(&tval) == -1) err(1, "time"); - format = "%+"; + format = nl_langinfo(D_T_FMT); /* allow the operands in any order */ if (*argv && **argv == '+') { -- 2.28.0