calendarspec: always interpret a missing time as 00:00:00

"*-*-*" is now equivalent to "*-*-* 00:00:00" (daily)
rather than "*-*-* *:*:*" (every second).
This commit is contained in:
Douglas Christman
2016-11-24 18:22:08 -05:00
parent 28d329571a
commit 408a51e156
2 changed files with 7 additions and 8 deletions
+3 -8
View File
@@ -699,14 +699,9 @@ static int parse_calendar_time(const char **p, CalendarSpec *c) {
t = *p;
if (*t == 0) {
/* If no time is specified at all, but a date of some
* kind, then this means 00:00:00 */
if (c->day || c->weekdays_bits > 0)
goto null_hour;
goto finish;
}
/* If no time is specified at all, then this means 00:00:00 */
if (*t == 0)
goto null_hour;
r = parse_chain(&t, false, &h);
if (r < 0)