diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-02 11:30:49 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-07 11:23:35 +0100 |
commit | c4d90f3e810bfc35756447e44aa9479d036779ac (patch) | |
tree | bcd4fd83147ba0518eeeeeaa3d5c0254b13c51c0 /apps/dav/lib/CalDAV/CalDavBackend.php | |
parent | 1765908c0366ce1ff65004473d57e4be724fac95 (diff) | |
download | nextcloud-server-c4d90f3e810bfc35756447e44aa9479d036779ac.tar.gz nextcloud-server-c4d90f3e810bfc35756447e44aa9479d036779ac.zip |
Removed catch of ValueError as we cannot know if it’s >2038 or <1970
Also fixed numericToString to correctly convert float to int if it fits
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/CalDAV/CalDavBackend.php')
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index f5c929e18f8..51eb505124e 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -1633,19 +1633,10 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription } if ($timeRange && $timeRange['start']) { - try { - $query->andWhere($query->expr()->gt('lastoccurence', $query->createNamedParameter($timeRange['start']->getTimeStamp()))); - } catch (\ValueError) { - /* Will happen for dates too far in the future on 32bit, return no results */ - return []; - } + $query->andWhere($query->expr()->gt('lastoccurence', $query->createNamedParameter($timeRange['start']->getTimeStamp()))); } if ($timeRange && $timeRange['end']) { - try { - $query->andWhere($query->expr()->lt('firstoccurence', $query->createNamedParameter($timeRange['end']->getTimeStamp()))); - } catch (\ValueError) { - /* Will happen for dates too far in the future on 32bit, ignore the limit in this case */ - } + $query->andWhere($query->expr()->lt('firstoccurence', $query->createNamedParameter($timeRange['end']->getTimeStamp()))); } $stmt = $query->executeQuery(); |