Took ical_dezonify.c back out of WebCit-NG
authorArt Cancro <ajc@citadel.org>
Fri, 22 Mar 2024 15:28:34 +0000 (08:28 -0700)
committerArt Cancro <ajc@citadel.org>
Fri, 22 Mar 2024 15:28:34 +0000 (08:28 -0700)
webcit-ng/server/caldav_reports.c
webcit-ng/server/ical_dezonify.c [deleted symlink]
webcit-ng/server/webcit.h

index 1a6b931f6c689fd88c26798c669ab0c786104002..906d96fcff39a57d5aca6991a7184a889ec0f00b 100644 (file)
@@ -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.
 }
diff --git a/webcit-ng/server/ical_dezonify.c b/webcit-ng/server/ical_dezonify.c
deleted file mode 120000 (symlink)
index c3ad895..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../webcit/ical_dezonify.c
\ No newline at end of file
index f3ce6d356ee5489b07543f7b594bf398d87aa39e..eb47b76fd2a7012dfef46147fd90fba655b067d7 100644 (file)
@@ -212,12 +212,6 @@ char *get_url_param(struct http_transaction *, char *);
 // ical_ctdl_is_overlap.c
 int ical_ctdl_is_overlap(struct icaltimetype, struct icaltimetype, struct icaltimetype, struct icaltimetype);
 
-// ical_dezonify.c
-icaltimezone *get_default_icaltimezone(void);
-void ical_dezonify_backend(icalcomponent *, icalcomponent *, icalproperty *);
-void ical_dezonify_recurse(icalcomponent *, icalcomponent *);
-void ical_dezonify(icalcomponent *);
-
 // main.c
 int main(int, char **);