From 23817b6b7dbeb3a3c96c8c91e25cfdb14da7c46b Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Thu, 23 Jul 2009 19:16:03 +0000 Subject: Incorrect duration format when exporting to ical (thanks Chris for reporting it). --- src/io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/io.c b/src/io.c index 3c0ffa9..ccd432d 100755 --- a/src/io.c +++ b/src/io.c @@ -1,4 +1,4 @@ -/* $calcurse: io.c,v 1.71 2009/07/23 18:33:21 culot Exp $ */ +/* $calcurse: io.c,v 1.72 2009/07/23 19:16:03 culot Exp $ */ /* * Calcurse - text-based organizer @@ -514,7 +514,7 @@ ical_export_recur_apoints (FILE *stream) date_sec2date_fmt (i->start, ICALDATETIMEFMT, ical_datetime); (void)fprintf (stream, "BEGIN:VEVENT\n"); (void)fprintf (stream, "DTSTART:%s\n", ical_datetime); - (void)fprintf (stream, "DURATION:PT%ldS\n", i->dur); + (void)fprintf (stream, "DURATION:PT0H0M%ldS\n", i->dur); (void)fprintf (stream, "RRULE:FREQ=%s;INTERVAL=%d", ical_recur_type[i->rpt->type], i->rpt->freq); @@ -617,7 +617,7 @@ ical_export_apoints (FILE *stream) date_sec2date_fmt (i->start, ICALDATETIMEFMT, ical_datetime); (void)fprintf (stream, "BEGIN:VEVENT\n"); (void)fprintf (stream, "DTSTART:%s\n", ical_datetime); - (void)fprintf (stream, "DURATION:PT%ldS\n", i->dur); + (void)fprintf (stream, "DURATION:PT0H0M%ldS\n", i->dur); (void)fprintf (stream, "SUMMARY:%s\n", i->mesg); if (i->state & APOINT_NOTIFY) ical_export_valarm (stream); -- cgit v1.2.3-54-g00ecf