]> code.citadel.org Git - citadel.git/blobdiff - webcit/calendar.c
* Make the "all day event" shadebox smaller (month view) - no border.
[citadel.git] / webcit / calendar.c
index c95b02e1013f373551ff48a205f955bc95a562bb..2f903ec340bc89879b91228df0e347f76e9010ab 100644 (file)
@@ -148,11 +148,23 @@ void cal_process_object(icalcomponent *cal,
                                                ICAL_DTSTART_PROPERTY);
                if (p != NULL) {
                        t = icalproperty_get_dtstart(p);
-                       tt = icaltime_as_timet(t);
-                       fmt_date(buf, tt);
-                       wprintf("<TR><TD><B>Starting date/time:</B></TD><TD>"
-                               "%s</TD></TR>", buf
-                       );
+
+                       if (t.is_date) {
+                               wprintf("<TR><TD><B>Date:"
+                                       "</B></TD><TD>"
+                                       "%s %d, %d</TD></TR>",
+                                       months[t.month - 1],
+                                       t.day, t.year
+                               );
+                       }
+                       else {
+                               tt = icaltime_as_timet(t);
+                               fmt_date(buf, tt);
+                               wprintf("<TR><TD><B>Starting date/time:"
+                                       "</B></TD><TD>"
+                                       "%s</TD></TR>", buf
+                               );
+                       }
                }
        
                p = icalcomponent_get_first_property(cal, ICAL_DTEND_PROPERTY);