aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Hibon <qh.public@yahoo.com>2018-05-09 03:42:03 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2018-05-10 14:03:29 +0200
commit01142891a735c84d9c4ae33fc8e4d46efd98fa12 (patch)
tree6140a732d05602e8105a2fab2f54933fe86b5190
parentb82a3b9276bd32c5a4f13fcf9661a7a65b3505aa (diff)
downloadcalcurse-01142891a735c84d9c4ae33fc8e4d46efd98fa12.tar.gz
calcurse-01142891a735c84d9c4ae33fc8e4d46efd98fa12.zip
ical: use the VALUE parameter in DTSTART
According to RFC5545 3.3 (Property Value Data Types): "If the value type of a property is one of the alternate valid types, then it MUST be explicitly specified with the "VALUE" parameter." Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--src/ical.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ical.c b/src/ical.c
index 309952d..95fef51 100644
--- a/src/ical.c
+++ b/src/ical.c
@@ -152,7 +152,7 @@ static void ical_export_events(FILE * stream, int export_uid)
struct event *ev = LLIST_TS_GET_DATA(i);
date_sec2date_fmt(ev->day, ICALDATEFMT, ical_date);
fputs("BEGIN:VEVENT\n", stream);
- fprintf(stream, "DTSTART:%s\n", ical_date);
+ fprintf(stream, "DTSTART;VALUE=DATE:%s\n", ical_date);
fprintf(stream, "SUMMARY:%s\n", ev->mesg);
if (export_uid) {