The recurrence editor is now feature complete. Unfortunately we are
already seeing the nightmare of time zones causing problems with
events recurring on the wrong day. Let the dystopic nightmare of
timezone debugging begin.
break;
case ICAL_YEARLY_RECURRENCE:
break;
case ICAL_YEARLY_RECURRENCE:
- if (!strcasecmp(bstr("rrmonthtype"), "rryeartype_ymday")) {
+ if (!strcasecmp(bstr("rryeartype"), "rryeartype_ymday")) {
/* no further action is needed here */
}
/* no further action is needed here */
}
- if (!strcasecmp(bstr("rrmonthtype"), "rryeartype_ywday")) {
- /* FIXME implement this */
+ else if (!strcasecmp(bstr("rryeartype"), "rryeartype_ywday")) {
+ recur.by_month[0] = atoi(bstr("rrymonth"));
+ recur.by_month[1] = ICAL_RECURRENCE_ARRAY_MAX;
+ recur.by_day[0] = (atoi(bstr("rrymweek")) * 8)
+ + atoi(bstr("rrymweekday")) + 1;
+ recur.by_day[1] = ICAL_RECURRENCE_ARRAY_MAX;