From d9aea39713d1fee9e0293174013dffa24a800c41 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Wed, 27 Mar 2019 18:32:36 +0100 Subject: Use ICALDATETIMEFMT for EXDATE Some servers (Radicale) cannot handle YYYYMM. Signed-off-by: Lukas Fleischer --- src/ical.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ical.c b/src/ical.c index b5c915a..95489a0 100644 --- a/src/ical.c +++ b/src/ical.c @@ -123,7 +123,7 @@ static void ical_export_recur_events(FILE * stream, int export_uid) fputs("EXDATE:", stream); LLIST_FOREACH(&rev->exc, j) { struct excp *exc = LLIST_GET_DATA(j); - date_sec2date_fmt(exc->st, ICALDATEFMT, + date_sec2date_fmt(exc->st, ICALDATETIMEFMT, ical_date); fprintf(stream, "%s", ical_date); fputc(LLIST_NEXT(j) ? ',' : '\n', stream); @@ -202,7 +202,7 @@ static void ical_export_recur_apoints(FILE * stream, int export_uid) fputs("EXDATE:", stream); LLIST_FOREACH(&rapt->exc, j) { struct excp *exc = LLIST_GET_DATA(j); - date_sec2date_fmt(exc->st, ICALDATEFMT, + date_sec2date_fmt(exc->st, ICALDATETIMEFMT, ical_date); fprintf(stream, "%s", ical_date); fputc(LLIST_NEXT(j) ? ',' : '\n', stream); -- cgit v1.2.3-70-g09d2