aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/date.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index 46d2e1074..1aa3e22d2 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -118,7 +118,9 @@ static struct tm *date_conv_ftime(struct tm *tm_time, const char *t_string)
118#define DATE_OPT_SET 0x02 118#define DATE_OPT_SET 0x02
119#define DATE_OPT_UTC 0x04 119#define DATE_OPT_UTC 0x04
120#define DATE_OPT_DATE 0x08 120#define DATE_OPT_DATE 0x08
121#define DATE_OPT_REFERENCE 0x10 121#ifdef CONFIG_FEATURE_DATE_ISOFMT
122# define DATE_OPT_TIMESPEC 0x10
123#endif
122 124
123int date_main(int argc, char **argv) 125int date_main(int argc, char **argv)
124{ 126{
@@ -156,7 +158,7 @@ int date_main(int argc, char **argv)
156 if(opt & 0x80000000UL) 158 if(opt & 0x80000000UL)
157 bb_show_usage(); 159 bb_show_usage();
158#ifdef CONFIG_FEATURE_DATE_ISOFMT 160#ifdef CONFIG_FEATURE_DATE_ISOFMT
159 if(opt & DATE_OPT_REFERENCE) { 161 if(opt & DATE_OPT_TIMESPEC) {
160 if (!isofmt_arg) { 162 if (!isofmt_arg) {
161 ifmt = 1; 163 ifmt = 1;
162 } else { 164 } else {