aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Grimler <henrik@grimler.se>2019-03-27 18:32:36 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2019-04-13 11:55:39 +0200
commitd9aea39713d1fee9e0293174013dffa24a800c41 (patch)
treee7fd1ff92f4745acc645167193a40be340d49010
parent78a46ac7cbae997979d7c1394328d3d44f9f1df4 (diff)
downloadcalcurse-d9aea39713d1fee9e0293174013dffa24a800c41.tar.gz
calcurse-d9aea39713d1fee9e0293174013dffa24a800c41.zip
Use ICALDATETIMEFMT for EXDATE
Some servers (Radicale) cannot handle YYYYMM. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--src/ical.c4
1 files changed, 2 insertions, 2 deletions
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);