summaryrefslogtreecommitdiff
path: root/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'date.c')
-rw-r--r--date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/date.c b/date.c
index dd054be..67d61a5 100644
--- a/date.c
+++ b/date.c
@@ -181,7 +181,7 @@ int date_main(int argc, char **argv)
set_time = 1;
if (date_str != NULL)
usage(date_usage);
- date_str = optarg;
+ date_str = *argv;
break;
case 'u':
utc = 1;
@@ -192,7 +192,7 @@ int date_main(int argc, char **argv)
use_arg = 1;
if (date_str != NULL)
usage(date_usage);
- date_str = optarg;
+ date_str = *argv;
break;
case '-':
usage(date_usage);