[BusyBox-cvs] busybox/coreutils date.c,1.45,1.46

Erik Andersen andersen at busybox.net
Tue Apr 6 09:38:20 UTC 2004


Update of /var/cvs/busybox/coreutils
In directory nail:/tmp/cvs-serv12187/coreutils

Modified Files:
	date.c 
Log Message:
Fix non standard 'date -R' formatting


Index: date.c
===================================================================
RCS file: /var/cvs/busybox/coreutils/date.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- a/date.c	15 Mar 2004 08:28:19 -0000	1.45
+++ b/date.c	6 Apr 2004 09:38:18 -0000	1.46
@@ -253,10 +253,10 @@
 		case 0:
 		default:
 #endif
-			date_fmt =
-				(opt & DATE_OPT_RFC2822
-				 ? (utc ? "%a, %e %b %Y %H:%M:%S GMT" :
-					"%a, %e %b %Y %H:%M:%S %z") : "%a %b %e %H:%M:%S %Z %Y");
+			date_fmt = (opt & DATE_OPT_RFC2822 ?
+					(utc ? "%a, %d %b %Y %H:%M:%S GMT" :
+					"%a, %d %b %Y %H:%M:%S %z") :
+					"%a %b %e %H:%M:%S %Z %Y");
 
 #ifdef CONFIG_FEATURE_DATE_ISOFMT
 			break;




More information about the busybox-cvs mailing list