aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/calobj.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c
index 59c34c866a..dbc3bf2f1b 100644
--- a/calendar/cal-util/calobj.c
+++ b/calendar/cal-util/calobj.c
@@ -300,6 +300,14 @@ daynumberlist (iCalObject *o, char **str)
(*str)++;
}
if (!first){
+ /*
+ * Some broken applications set this to zero
+ */
+ if (val == 0){
+ struct tm *day = localtime (&o->dtstart);
+
+ val = tm->tm_mday;
+ }
o->recur->u.month_day = val;
first = 1;
val = 0;