Use ICALDATETIMEFMT for EXDATE

Some servers (Radicale) cannot handle YYYYMM.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Henrik Grimler 2019-03-27 18:32:36 +01:00 committed by Lukas Fleischer
parent 78a46ac7cb
commit d9aea39713

View File

@ -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);