Skip to content

Commit

Permalink
Fixed Bug: plan wouldn't set time on '<date>/<activity>' formatted ac…
Browse files Browse the repository at this point in the history
…tivities
  • Loading branch information
nickziv committed Oct 15, 2011
1 parent 5a76e22 commit 66d2260
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/plan_main.c
Expand Up @@ -750,12 +750,8 @@ do_time(int ac, char *av[])
n = strchr(av[2], '/');
n += 1;

if (*av[2] >= 48 && *av[2] <= 57) {
parse_date(av[2], &date);
} else {
day = parse_day(av[2]);
date = NULL;
}
parse_date(av[2], &date);
day = parse_day(av[2]);

if (day == -1 && date == 0) {
day_err();
Expand Down

0 comments on commit 66d2260

Please sign in to comment.