more work on the recurrence editor
authorArt Cancro <ajc@citadel.org>
Tue, 21 Oct 2008 16:53:49 +0000 (16:53 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 21 Oct 2008 16:53:49 +0000 (16:53 +0000)
webcit/event.c

index 24e9bd4c467d1f5e64593e0e0542df586b0f5a18..2d942aba49fc5658135e9d65ebf76f38b7c6128a 100644 (file)
@@ -529,9 +529,9 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
                ((which_rrmonthtype_is_preselected == 0) ? "checked" : "")
        );
 
-       int rrmday = 1;                                 /* FIXME default to same as event start */
+       int rrmday = t_start.day;
        int rrmweek = 1;                                /* FIXME default to same as event start */
-       int rrmweekday = 1;                             /* FIXME default to same as event start */
+       int rrmweekday = icaltime_day_of_week(t_start) - 1;
 
        if (recur.by_month_day[0] != ICAL_RECURRENCE_ARRAY_MAX) {
                which_rrmonthtype_is_preselected = 0;