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>
This commit is contained in:
parent
b82a3b9276
commit
01142891a7
@ -152,7 +152,7 @@ static void ical_export_events(FILE * stream, int export_uid)
|
|||||||
struct event *ev = LLIST_TS_GET_DATA(i);
|
struct event *ev = LLIST_TS_GET_DATA(i);
|
||||||
date_sec2date_fmt(ev->day, ICALDATEFMT, ical_date);
|
date_sec2date_fmt(ev->day, ICALDATEFMT, ical_date);
|
||||||
fputs("BEGIN:VEVENT\n", stream);
|
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);
|
fprintf(stream, "SUMMARY:%s\n", ev->mesg);
|
||||||
|
|
||||||
if (export_uid) {
|
if (export_uid) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user