X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit-ng%2Fserver%2Fcaldav_reports.c;h=906d96fcff39a57d5aca6991a7184a889ec0f00b;hp=1a6b931f6c689fd88c26798c669ab0c786104002;hb=b0ea3f3bd48ceacbd2cd254c84b4173dea2b6bfc;hpb=41966209672df12d0de6bcf5ec38628170f6c82a diff --git a/webcit-ng/server/caldav_reports.c b/webcit-ng/server/caldav_reports.c index 1a6b931f6..906d96fcf 100644 --- a/webcit-ng/server/caldav_reports.c +++ b/webcit-ng/server/caldav_reports.c @@ -264,10 +264,10 @@ void caldav_report_one_item(struct http_transaction *h, struct ctdlsession *c, S int caldav_time_range_filter_matches(icalcomponent *cal, char *start_str, char *end_str) { struct icaltimetype start = icaltime_from_string(start_str); - syslog(LOG_DEBUG, " search start: \033[36m%16s\033[0m (%s)", icaltime_as_ical_string_r(start), icaltime_get_tzid(start)); + syslog(LOG_DEBUG, " search start: \033[36m%-16s\033[0m (%s)", icaltime_as_ical_string_r(start), icaltime_get_tzid(start)); struct icaltimetype end = icaltime_from_string(end_str); - syslog(LOG_DEBUG, " search end: \033[36m%16s\033[0m (%s)", icaltime_as_ical_string_r(end), icaltime_get_tzid(end)); + syslog(LOG_DEBUG, " search end: \033[36m%-16s\033[0m (%s)", icaltime_as_ical_string_r(end), icaltime_get_tzid(end)); // IMPLEMENTATION NOTE: // ical_ctdl_is_overlap() works because icaltime_compare() is really smart. @@ -277,10 +277,10 @@ int caldav_time_range_filter_matches(icalcomponent *cal, char *start_str, char * // from having to convert everything to UTC before comparing. Nice! icaltimetype dts = icalcomponent_get_dtstart(cal); - syslog(LOG_DEBUG, "component start: \033[36m%16s\033[0m (%s)", icaltime_as_ical_string_r(dts), icaltime_get_tzid(dts)); + syslog(LOG_DEBUG, "component start: \033[36m%-16s\033[0m (%s)", icaltime_as_ical_string_r(dts), icaltime_get_tzid(dts)); icaltimetype dte = icalcomponent_get_dtend(cal); - syslog(LOG_DEBUG, "component end: \033[36m%16s\033[0m (%s)", icaltime_as_ical_string_r(dte), icaltime_get_tzid(dte)); + syslog(LOG_DEBUG, "component end: \033[36m%-16s\033[0m (%s)", icaltime_as_ical_string_r(dte), icaltime_get_tzid(dte)); return(ical_ctdl_is_overlap(dts, dte, start, end)); // We have a convenience function for this. }