aboutsummaryrefslogtreecommitdiff
path: root/views/ical
diff options
context:
space:
mode:
Diffstat (limited to 'views/ical')
-rw-r--r--views/ical/object/event_calendar.php4
-rw-r--r--views/ical/page/default.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/views/ical/object/event_calendar.php b/views/ical/object/event_calendar.php
index a6ed889e5..36d71a66c 100644
--- a/views/ical/object/event_calendar.php
+++ b/views/ical/object/event_calendar.php
@@ -29,9 +29,9 @@ CREATED:<?php echo date("Ymd\THis\Z", $event->getTimeCreated())?>
LAST-MODIFIED:<?php echo date("Ymd\THis\Z", $event->getTimeUpdated()) ?>
-DTSTART:<?php echo date("Ymd\THis\Z", $event->start_date); ?>
+DTSTART;VALUE=DATE:<?php echo date("Ymd\THis\Z", $event->start_date); ?>
-DTEND:<?php echo date("Ymd\THis\Z", $event->real_end_time); ?>
+DTEND;VALUE=DATE:<?php echo date("Ymd\THis\Z", $event->real_end_time); ?>
SUMMARY:<?php echo $event->title; ?>
diff --git a/views/ical/page/default.php b/views/ical/page/default.php
index c269b5849..b4cd7eefb 100644
--- a/views/ical/page/default.php
+++ b/views/ical/page/default.php
@@ -8,7 +8,7 @@
*/
header("Content-Type: text/calendar");
-//header("Content-Disposition: attachment; filename=\"calendar.ics\"");
+header("Content-Disposition: inline; filename=\"calendar.ics\"");
?>
BEGIN:VCALENDAR
VERSION:2.0