diff --git a/apps/dav/lib/CalDAV/BirthdayService.php b/apps/dav/lib/CalDAV/BirthdayService.php index 70b2e859f89a4..002a3c006bddc 100644 --- a/apps/dav/lib/CalDAV/BirthdayService.php +++ b/apps/dav/lib/CalDAV/BirthdayService.php @@ -317,6 +317,11 @@ public function syncUser(string $user):void { } /** + * The birthday event is considered changed if either + * - the start date has changed + * - the title has changed + * - the time for the alarm has changed + * * @param string $existingCalendarData * @param VCalendar $newCalendarData * @return bool @@ -331,7 +336,8 @@ public function birthdayEvenChanged(string $existingCalendarData, return ( $newCalendarData->VEVENT->DTSTART->getValue() !== $existingBirthday->VEVENT->DTSTART->getValue() || - $newCalendarData->VEVENT->SUMMARY->getValue() !== $existingBirthday->VEVENT->SUMMARY->getValue() + $newCalendarData->VEVENT->SUMMARY->getValue() !== $existingBirthday->VEVENT->SUMMARY->getValue() || + ($newCalendarData->VEVENT->VALARM && $existingBirthday->VEVENT->VALARM && $newCalendarData->VEVENT->VALARM->TRIGGER->getValue() !== $existingBirthday->VEVENT->VALARM->TRIGGER->getValue()) ); }