Fix non standard 'date -R' formatting

This commit is contained in:
Eric Andersen 2004-04-06 09:38:18 +00:00
parent c354f6ee54
commit 39396b95fc

View File

@ -253,10 +253,10 @@ int date_main(int argc, char **argv)
case 0: case 0:
default: default:
#endif #endif
date_fmt = date_fmt = (opt & DATE_OPT_RFC2822 ?
(opt & DATE_OPT_RFC2822 (utc ? "%a, %d %b %Y %H:%M:%S GMT" :
? (utc ? "%a, %e %b %Y %H:%M:%S GMT" : "%a, %d %b %Y %H:%M:%S %z") :
"%a, %e %b %Y %H:%M:%S %z") : "%a %b %e %H:%M:%S %Z %Y"); "%a %b %e %H:%M:%S %Z %Y");
#ifdef CONFIG_FEATURE_DATE_ISOFMT #ifdef CONFIG_FEATURE_DATE_ISOFMT
break; break;