aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-02-03 15:26:31 +0100
committerGitHub <noreply@github.com>2024-02-03 15:26:31 +0100
commitd0295750b9c07a22fcea2f8cfbcbf23c0132c1a4 (patch)
tree3550c8a121e034e3cd74e41e8a0125940e4b3579 /apps
parent8bf8074dc51a804c1bd94ac887682f3148666bd4 (diff)
parent020c2960b89ae01fe785460ca2f7a3d3b478124e (diff)
downloadnextcloud-server-d0295750b9c07a22fcea2f8cfbcbf23c0132c1a4.tar.gz
nextcloud-server-d0295750b9c07a22fcea2f8cfbcbf23c0132c1a4.zip
Merge pull request #43282 from nextcloud/backport/42696/stable28
[stable28] fix(caldav): only call getTimestamp() on actual DateTime data
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/CalDAV/Status/StatusService.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/Status/StatusService.php b/apps/dav/lib/CalDAV/Status/StatusService.php
index 24e929f9d0e..9dccd4e77a3 100644
--- a/apps/dav/lib/CalDAV/Status/StatusService.php
+++ b/apps/dav/lib/CalDAV/Status/StatusService.php
@@ -106,8 +106,7 @@ class StatusService {
if (isset($component['DTSTART']) && $userStatusTimestamp !== null) {
/** @var DateTimeImmutable $dateTime */
$dateTime = $component['DTSTART'][0];
- $timestamp = $dateTime->getTimestamp();
- if($userStatusTimestamp > $timestamp) {
+ if($dateTime instanceof DateTimeImmutable && $userStatusTimestamp > $dateTime->getTimestamp()) {
return false;
}
}