From 4b2f9e40275826c36bc1b225f321274f3b3bc2f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Achim=20K=C3=B6nigs?= Date: Tue, 22 Mar 2016 23:47:34 +0100 Subject: [PATCH] add VALARM for birthday events ACTION=DISPLAY *should* prevents audible alarms. --- apps/dav/lib/caldav/birthdayservice.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/dav/lib/caldav/birthdayservice.php b/apps/dav/lib/caldav/birthdayservice.php index 274341949b..e03a630fed 100644 --- a/apps/dav/lib/caldav/birthdayservice.php +++ b/apps/dav/lib/caldav/birthdayservice.php @@ -147,6 +147,11 @@ class BirthdayService { $vEvent->{'RRULE'} = 'FREQ=YEARLY'; $vEvent->{'SUMMARY'} = $title . ' (*' . $date->format('Y') . ')'; $vEvent->{'TRANSP'} = 'TRANSPARENT'; + $alarm = $vCal->createComponent('VALARM'); + $alarm->add($vCal->createProperty('TRIGGER', '-PT0M', ['VALUE' => 'DURATION'])); + $alarm->add($vCal->createProperty('ACTION', 'DISPLAY')); + $alarm->add($vCal->createProperty('DESCRIPTION', $vEvent->{'SUMMARY'})); + $vEvent->add($alarm); $vCal->add($vEvent); return $vCal; }