X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fserver%2Fcaldav_reports.c;fp=webcit-ng%2Fserver%2Fcaldav_reports.c;h=bd451e9e2d5e0821abe75ae54d81630d03f5d238;hb=601d4c8f9e3fc42b74beb2e16d94a7e4a995aa1f;hp=188f4bd196c196215f1d2a6b85714543b5958d57;hpb=fc3a564c7bba86a29503b39bdd8512801116e70e;p=citadel.git diff --git a/webcit-ng/server/caldav_reports.c b/webcit-ng/server/caldav_reports.c index 188f4bd19..bd451e9e2 100644 --- a/webcit-ng/server/caldav_reports.c +++ b/webcit-ng/server/caldav_reports.c @@ -261,11 +261,17 @@ void caldav_report_one_item(struct http_transaction *h, struct ctdlsession *c, S // Returns nonzero if the supplied icalcomponent occurs within the specified time range int caldav_time_range_filter_matches(icalcomponent *cal_in, char *start_str, char *end_str) { - struct icaltimetype start = (start_str ? icaltime_from_string(start_str) : icaltime_null_time()); - struct icaltimetype end = (end_str ? icaltime_from_string(end_str) : icaltime_null_time()); - - + struct icaltimetype start = ( + start_str + ? icaltime_from_string(start_str) + : icaltime_from_string("19010101T010101Z") + ); + struct icaltimetype end = ( + end_str + ? icaltime_from_string(end_str) + : icaltime_from_string("99991231T235959Z") // ISO8601 is not Y10K compliant + ); // NOTE TO ME: The header file says