]> code.citadel.org Git - citadel.git/blobdiff - webcit/calendar_tools.c
* "All day event" shows as a single checkbox, instead of one for the start
[citadel.git] / webcit / calendar_tools.c
index 581d044d92442082c401e50f458dfc0b5d975ec0..10d898baf404eca8b303c82f8d979258ec448f8e 100644 (file)
@@ -110,7 +110,6 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix) {
                );
        }
        wprintf("</SELECT>\n");
-
 }
 
 
@@ -133,6 +132,17 @@ struct icaltimetype icaltime_from_webform(char *prefix) {
 }
 
 
+/*
+ * Generae a new, globally unique UID parameter for a calendar object.
+ */
+void generate_new_uid(char *buf) {
+       static int seq = 0;
+
+       sprintf(buf, "%ld-%d@%s",
+               (long)time(NULL),
+               (seq++),
+               serv_info.serv_fqdn);
+}
 
 
 #endif