Fix parsing of times in parse_datetimearg()
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
519107dc47
commit
aca92e619d
@ -353,9 +353,9 @@ static int parse_datetimearg(const char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = parse_datearg(date);
|
ret = parse_datearg(date);
|
||||||
if (!ret) {
|
if (ret < 0) {
|
||||||
/* No date specified, use time only. */
|
/* No date specified, use time only. */
|
||||||
if (!parse_time(time, &hour, &min))
|
if (!parse_time(date, &hour, &min))
|
||||||
return -1;
|
return -1;
|
||||||
return get_today() + hour * HOURINSEC + min * MININSEC;
|
return get_today() + hour * HOURINSEC + min * MININSEC;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user