diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 12408d8e10..0a1ad84f81 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -1455,10 +1455,6 @@ class ShareAPIController extends OCSController { throw new \Exception('Invalid date. Format must be YYYY-MM-DD'); } - if ($date === false) { - throw new \Exception('Invalid date. Format must be YYYY-MM-DD'); - } - $date->setTime(0, 0, 0); return $date;