diff options
author | Eric Andersen | 2004-04-06 09:38:18 +0000 |
---|---|---|
committer | Eric Andersen | 2004-04-06 09:38:18 +0000 |
commit | 39396b95fc7c46bfa29ec576357fb7f8e755762c (patch) | |
tree | 49241fe85a5c40eecac302a0559752e010059d04 | |
parent | c354f6ee54c53057eca50359a94c7b50246b0e53 (diff) | |
download | busybox-39396b95fc7c46bfa29ec576357fb7f8e755762c.zip busybox-39396b95fc7c46bfa29ec576357fb7f8e755762c.tar.gz |
Fix non standard 'date -R' formatting
-rw-r--r-- | coreutils/date.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/date.c b/coreutils/date.c index 9c76329..6edca5b 100644 --- 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; |