projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c354f6e
)
Fix non standard 'date -R' formatting
author
Eric Andersen
<andersen@codepoet.org>
Tue, 6 Apr 2004 09:38:18 +0000
(09:38 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Tue, 6 Apr 2004 09:38:18 +0000
(09:38 -0000)
coreutils/date.c
patch
|
blob
|
history
diff --git
a/coreutils/date.c
b/coreutils/date.c
index 9c763299f3218811a78c6ac44cf0ea587727134c..6edca5b15736cb271e54dd3cc95b3bf879ec7989 100644
(file)
--- a/
coreutils/date.c
+++ b/
coreutils/date.c
@@
-253,10
+253,10
@@
int date_main(int argc, char **argv)
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;