From 01142891a735c84d9c4ae33fc8e4d46efd98fa12 Mon Sep 17 00:00:00 2001
From: Quentin Hibon <qh.public@yahoo.com>
Date: Wed, 9 May 2018 03:42:03 +0200
Subject: 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>
---
 src/ical.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

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) {
-- 
cgit v1.2.3-70-g09d2