aboutsummaryrefslogtreecommitdiff
path: root/ical.php
diff options
context:
space:
mode:
authorCamil Staps2020-02-03 21:29:36 +0100
committerCamil Staps2020-02-03 21:29:36 +0100
commit9ded34f9d3d84fb1ea311c2fb3d935c91d4afddb (patch)
treea34c8e1280ac6a7a4513632a2cdce981d49bb7ed /ical.php
parentAdd ability to see description on list.php (diff)
Add sequence,added_at, and updated_at to events table; implement SEQUENCE in iCal export
Diffstat (limited to 'ical.php')
-rw-r--r--ical.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/ical.php b/ical.php
index 92c7eb8..f3ad5b5 100644
--- a/ical.php
+++ b/ical.php
@@ -52,6 +52,7 @@ $events=isset($_GET['keywords']) ? get_events (explode (',',$_GET['keywords']))
foreach ($events as $event){
echo "BEGIN:VEVENT\r\n";
echo icalline ('UID','event-'.$event['id'].'@agenda.hebrewtools.org');
+ echo icalline ('SEQUENCE',$event['sequence']);
echo icalline ('SUMMARY',$event['title']);
echo icalline ('LOCATION',$event['location']);
echo icalline ('DTSTART',date ('Ymd',strtotime ($event['start_date'])));